aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/comdat3.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/comdat3.ll')
-rw-r--r--test/Linker/comdat3.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Linker/comdat3.ll b/test/Linker/comdat3.ll
new file mode 100644
index 0000000..f0d9a48
--- /dev/null
+++ b/test/Linker/comdat3.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-link %s %p/Inputs/comdat2.ll -S -o - 2>&1 | FileCheck %s
+
+$foo = comdat largest
+@foo = global i32 43, comdat $foo
+; CHECK: Linking COMDATs named 'foo': can't do size dependent selection without DataLayout!