]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Transforms/StripDeadPrototypes/basic.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / Transforms / StripDeadPrototypes / basic.ll
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
5 declare i32 @f()
6 ; CHECK-NOT: declare i32 @g
7 declare i32 @g()
8
9 define i32 @foo() {
10   %call = call i32 @f()
11   ret i32 %call
12 }