[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / error-location.s
blob29bb5fe1b62c1092a7399debe5a8bb1f7f3c39c2
1 @ RUN: not llvm-mc -triple armv7a--none-eabi -filetype obj < %s -o /dev/null 2>&1 | FileCheck %s
3 @ Note: These errors are not always emitted in the order in which the relevant
4 @ source appears, this file is carefully ordered so that that is the case.
6 .text
7 @ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: symbol 'undef' can not be undefined in a subtraction expression
8 .word (0-undef)
10 @ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: expected relocatable expression
11 .word -undef
13 @ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: symbol 'undef' can not be undefined in a subtraction expression
14 adr r0, #a-undef
16 @ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
17 .word x_a - y_a
22 .word 0
23 .weak w
26 .section sec_x
27 x_a:
28 .word 0
31 .section sec_y
32 y_a:
33 .word 0