summaryrefslogtreecommitdiff
path: root/test/Linker/ConstantGlobals.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/ConstantGlobals.ll')
-rw-r--r--test/Linker/ConstantGlobals.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Linker/ConstantGlobals.ll b/test/Linker/ConstantGlobals.ll
new file mode 100644
index 000000000000..49f86a51bd7f
--- /dev/null
+++ b/test/Linker/ConstantGlobals.ll
@@ -0,0 +1,8 @@
+; 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]