projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PM] Port StripDeadPrototypes to the new pass manager
[oota-llvm.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
}