mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
16 lines
278 B
LLVM
16 lines
278 B
LLVM
; RUN: opt < %s -ipconstprop -S | grep "ret i32 %r"
|
|
; Should not propagate the result of a weak function.
|
|
; PR2411
|
|
|
|
define weak i32 @foo() nounwind {
|
|
entry:
|
|
ret i32 1
|
|
}
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
%r = call i32 @foo( ) nounwind
|
|
ret i32 %r
|
|
}
|
|
|