repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git]
/
test
/
Transforms
/
IPConstantProp
/
2008-06-09-WeakProp.ll
blob
66403363bf932e8f93b7290d742445a04b399764
1
; RUN: opt < %s -ipconstprop -S | grep {ret i32 %r}
2
; Should not propagate the result of a weak function.
3
; PR2411
4
5
define weak i32 @foo() nounwind {
6
entry:
7
ret i32 1
8
}
9
10
define i32 @main() nounwind {
11
entry:
12
%r = call i32 @foo( ) nounwind
13
ret i32 %r
14
}
15