Sign in
ara-mdk
/
platform
/
external
/
llvm
/
d517da33b712b5d8d687ee5e5974056a4787ec4f
/
.
/
test
/
Transforms
/
IPConstantProp
/
2008-06-09-WeakProp.ll
blob: 54a65d61da37317497e5ae78c89e19b9ff361ab9 [
file
] [
log
] [
blame
]
; 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
}