1 ; RUN: opt < %s -ipconstprop -S | FileCheck %s
9 ; We can const-prop @baz's return value *into* @foo, but cannot
10 ; constprop @foo's return value into bar.
12 define linkonce_odr i32 @foo() {
14 ; CHECK-NEXT: %val = call i32 @baz()
15 ; CHECK-NEXT: ret i32 10
17 %val = call i32 @baz()
23 ; CHECK-NEXT: %val = call i32 @foo()
24 ; CHECK-NEXT: ret i32 %val
26 %val = call i32 @foo()