summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/comdat15.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Linker/comdat15.ll')
-rw-r--r--llvm/test/Linker/comdat15.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Linker/comdat15.ll b/llvm/test/Linker/comdat15.ll
new file mode 100644
index 00000000000..cf900263105
--- /dev/null
+++ b/llvm/test/Linker/comdat15.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-link -S %s %p/Inputs/comdat15.ll -o - | FileCheck %s
+
+$a1 = comdat any
+@bar = global i32 0, comdat($a1)
+
+; CHECK: @bar = global i32 0, comdat($a1)
+; CHECK: @baz = private global i32 42, comdat($a1)
+; CHECK: @a1 = internal alias i32, i32* @baz
+
OpenPOWER on IntegriCloud