summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/coff-comdat3.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/coff-comdat3.ll')
-rw-r--r--test/CodeGen/X86/coff-comdat3.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/coff-comdat3.ll b/test/CodeGen/X86/coff-comdat3.ll
new file mode 100644
index 0000000000..76e464b275
--- /dev/null
+++ b/test/CodeGen/X86/coff-comdat3.ll
@@ -0,0 +1,8 @@
+; RUN: not llc %s -o /dev/null 2>&1 | FileCheck %s
+
+target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
+target triple = "i686-pc-windows-msvc"
+
+$foo = comdat largest
+@bar = global i32 0, comdat $foo
+; CHECK: Associative COMDAT symbol 'foo' does not exist.