summaryrefslogtreecommitdiff
path: root/test/Linker/comdat4.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/comdat4.ll')
-rw-r--r--test/Linker/comdat4.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Linker/comdat4.ll b/test/Linker/comdat4.ll
new file mode 100644
index 0000000000..50c1778e89
--- /dev/null
+++ b/test/Linker/comdat4.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-link %s %p/Inputs/comdat3.ll -S -o - 2>&1 | FileCheck %s
+
+$foo = comdat noduplicates
+@foo = global i64 43, comdat $foo
+; CHECK: Linking COMDATs named 'foo': noduplicates has been violated!