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