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