mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-02 00:42:52 +01:00
7864575654
result of a weak function. llvm-svn: 52137
16 lines
296 B
LLVM
16 lines
296 B
LLVM
; RUN: llvm-as < %s | opt -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
|
|
}
|
|
|