linux-packaging-mono/external/llvm/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s
Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

16 lines
471 B
ArmAsm

@ 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
c:
.word a - b
@ CHECK-ERROR: symbol 'a' can not be undefined in a subtraction expression
.word c - b
@ CHECK-ERROR: symbol 'b' can not be undefined in a subtraction expression