aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/MachO/ARM/bad-darwin-ARM-reloc.s')
-rw-r--r--test/MC/MachO/ARM/bad-darwin-ARM-reloc.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s b/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s
new file mode 100644
index 0000000..7ad91df
--- /dev/null
+++ b/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s
@@ -0,0 +1,9 @@
+@ RUN: not llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
+@ RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
+@ rdar://15586725
+.text
+ ldr r3, L___fcommon
+.section myseg, mysect
+L___fcommon:
+ .word 0
+@ CHECK-ERROR: unsupported relocation on symbol