mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
8d84372836
of using llvm-as, now that opt supports this. llvm-svn: 81226
16 lines
284 B
LLVM
16 lines
284 B
LLVM
; RUN: opt %s -ipconstprop | llvm-dis | 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
|
|
}
|
|
|