xref: /aosp_15_r20/external/llvm/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: opt < %s -ipconstprop -S | grep "ret i32 %r"
2; Should not propagate the result of a weak function.
3; PR2411
4
5define weak i32 @foo() nounwind  {
6entry:
7        ret i32 1
8}
9
10define i32 @main() nounwind  {
11entry:
12        %r = call i32 @foo( ) nounwind
13        ret i32 %r
14}
15
16