2014-10-31 13:04:16 +08:00
|
|
|
; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s
|
|
|
|
; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s
|
|
|
|
|
|
|
|
; CHECK-DAG: @X = constant [1 x i32] [i32 8]
|
|
|
|
@X = external global [1 x i32]
|
|
|
|
|
|
|
|
; CHECK-DAG: @Y = external global [1 x i32]
|
|
|
|
@Y = external global [1 x i32]
|
2015-12-08 00:31:41 +08:00
|
|
|
|
|
|
|
define [1 x i32]* @use-Y() {
|
|
|
|
ret [1 x i32] *@Y
|
|
|
|
}
|