1 ; RUN: llvm-link %S/Inputs/2003-05-31-LinkerRename.ll %s -S | FileCheck %s 2 3 ; CHECK: @bar = global i32 ()* @foo.2 4 5 ; CHECK: define internal i32 @foo.2() { 6 ; CHECK-NEXT: ret i32 7 7 ; CHECK-NEXT: } 8 9 ; CHECK: define i32 @test() { 10 ; CHECK-NEXT: %X = call i32 @foo() 11 ; CHECK-NEXT: ret i32 %X 12 ; CHECK-NEXT: } 13 14 ; CHECK: declare i32 @foo() 15 16 declare i32 @foo() 17 18 define i32 @test() { 19 %X = call i32 @foo() 20 ret i32 %X 21 } 22