aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/COFF/section-comdat-conflict.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/COFF/section-comdat-conflict.s')
-rw-r--r--test/MC/COFF/section-comdat-conflict.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/COFF/section-comdat-conflict.s b/test/MC/COFF/section-comdat-conflict.s
new file mode 100644
index 0000000..7ed452a
--- /dev/null
+++ b/test/MC/COFF/section-comdat-conflict.s
@@ -0,0 +1,13 @@
+// RUN: not llvm-mc -triple i386-pc-win32 -filetype=obj < %s 2>&1 | FileCheck %s
+
+// CHECK: conflicting sections for symbol
+
+ .section .xyz
+ .global bar
+bar:
+ .long 42
+
+ .section .abcd,"xr",discard,bar
+ .global foo
+foo:
+ .long 42