IR: Add COMDATs to the IR
[oota-llvm.git] / test / Linker / comdat4.ll
diff --git a/test/Linker/comdat4.ll b/test/Linker/comdat4.ll
new file mode 100644 (file)
index 0000000..50c1778
--- /dev/null
@@ -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!