2015-12-08 00:01:40 +08:00
|
|
|
; RUN: llvm-link %S/Inputs/2003-05-31-LinkerRename.ll %s -S | FileCheck %s
|
2003-06-01 05:14:45 +08:00
|
|
|
|
2015-11-22 08:16:24 +08:00
|
|
|
; CHECK: @bar = global i32 ()* @foo.2
|
2014-10-24 02:52:46 +08:00
|
|
|
|
2015-11-22 08:16:24 +08:00
|
|
|
; CHECK: define internal i32 @foo.2() {
|
2014-10-24 02:52:46 +08:00
|
|
|
; CHECK-NEXT: ret i32 7
|
|
|
|
; CHECK-NEXT: }
|
|
|
|
|
|
|
|
; CHECK: define i32 @test() {
|
|
|
|
; CHECK-NEXT: %X = call i32 @foo()
|
|
|
|
; CHECK-NEXT: ret i32 %X
|
|
|
|
; CHECK-NEXT: }
|
|
|
|
|
2015-12-08 00:31:41 +08:00
|
|
|
; CHECK: declare i32 @foo()
|
|
|
|
|
2014-10-24 02:52:46 +08:00
|
|
|
declare i32 @foo()
|
|
|
|
|
|
|
|
define i32 @test() {
|
2007-04-16 02:11:57 +08:00
|
|
|
%X = call i32 @foo()
|
|
|
|
ret i32 %X
|
2003-06-01 05:14:45 +08:00
|
|
|
}
|