blob: 66403363bf932e8f93b7290d742445a04b399764 [file] [log] [blame]
John Bauman66b8ab22014-05-06 15:57:45 -04001; RUN: opt < %s -ipconstprop -S | grep {ret i32 %r}
2; Should not propagate the result of a weak function.
3; PR2411
4
5define weak i32 @foo() nounwind {
6entry:
7 ret i32 1
8}
9
10define i32 @main() nounwind {
11entry:
12 %r = call i32 @foo( ) nounwind
13 ret i32 %r
14}
15