1; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s
2; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s
3
4; CHECK-DAG: @X = constant [1 x i32] [i32 8]
5@X = external global [1 x i32]
6
7; CHECK-DAG: @Y = external global [1 x i32]
8@Y = external global [1 x i32]
9
10define [1 x i32]* @use-Y() {
11  ret [1 x i32] *@Y
12}
13