xref: /aosp_15_r20/external/llvm/test/Transforms/StripDeadPrototypes/basic.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: opt -strip-dead-prototypes -S -o - < %s | FileCheck %s
2; RUN: opt -S -passes=strip-dead-prototypes < %s | FileCheck %s
3
4; CHECK: declare i32 @f
5declare i32 @f()
6; CHECK-NOT: declare i32 @g
7declare i32 @g()
8
9define i32 @foo() {
10  %call = call i32 @f()
11  ret i32 %call
12}
13