summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/comdat14.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Linker/comdat14.ll')
-rw-r--r--llvm/test/Linker/comdat14.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Linker/comdat14.ll b/llvm/test/Linker/comdat14.ll
new file mode 100644
index 00000000000..70d1142bdf9
--- /dev/null
+++ b/llvm/test/Linker/comdat14.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-link -S %s %p/Inputs/comdat14.ll -o - | FileCheck %s
+
+$c = comdat any
+
+@v = global i32 0, comdat ($c)
+
+; CHECK: @v = global i32 0, comdat($c)
+; CHECK: @v2 = extern_weak global i32
+; CHECK: @v3 = extern_weak global i32
OpenPOWER on IntegriCloud