2015-08-21 10:48:20 +08:00
|
|
|
; RUN: llvm-split -o %t %s
|
|
|
|
; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
|
|
|
|
; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
|
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
; CHECK0-DAG: @afoo = alias [2 x i8*], [2 x i8*]* @foo
|
2015-08-21 10:48:20 +08:00
|
|
|
; CHECK1-DAG: @afoo = external global [2 x i8*]
|
2015-09-11 11:22:04 +08:00
|
|
|
@afoo = alias [2 x i8*], [2 x i8*]* @foo
|
2015-08-21 10:48:20 +08:00
|
|
|
|
|
|
|
; CHECK0-DAG: declare void @abar()
|
2015-09-11 11:22:04 +08:00
|
|
|
; CHECK1-DAG: @abar = alias void (), void ()* @bar
|
|
|
|
@abar = alias void (), void ()* @bar
|
2015-08-21 10:48:20 +08:00
|
|
|
|
|
|
|
@foo = global [2 x i8*] [i8* bitcast (void ()* @bar to i8*), i8* bitcast (void ()* @abar to i8*)]
|
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
store [2 x i8*] zeroinitializer, [2 x i8*]* @foo
|
|
|
|
store [2 x i8*] zeroinitializer, [2 x i8*]* @afoo
|
|
|
|
ret void
|
|
|
|
}
|