Sign in
swiftshader
/
SwiftShader
/
3b5e426b815f75e71d1bcf74b66b9fb0f6830f44
/
.
/
third_party
/
LLVM
/
test
/
Transforms
/
IPConstantProp
/
2008-06-09-WeakProp.ll
blob: 66403363bf932e8f93b7290d742445a04b399764 [
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
}