xref: /aosp_15_r20/external/llvm/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
2*9880d681SAndroid Build Coastguard Worker@ RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
3*9880d681SAndroid Build Coastguard Worker@ rdar://15586725
4*9880d681SAndroid Build Coastguard Worker.text
5*9880d681SAndroid Build Coastguard Worker    ldr r3, L___fcommon
6*9880d681SAndroid Build Coastguard Worker.section myseg, mysect
7*9880d681SAndroid Build Coastguard WorkerL___fcommon:
8*9880d681SAndroid Build Coastguard Worker    .word 0
9*9880d681SAndroid Build Coastguard Worker@ CHECK-ERROR: unsupported relocation on symbol
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerc:
12*9880d681SAndroid Build Coastguard Worker  .word a - b
13*9880d681SAndroid Build Coastguard Worker@ CHECK-ERROR: symbol 'a' can not be undefined in a subtraction expression
14*9880d681SAndroid Build Coastguard Worker  .word c - b
15*9880d681SAndroid Build Coastguard Worker@ CHECK-ERROR: symbol 'b' can not be undefined in a subtraction expression
16