[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / directive-eabi_attribute-diagnostics.s
blob2b0375e576136f9247db9baf1500595c45ee741d
1 @ RUN: not llvm-mc -triple armv7-elf -filetype asm -o /dev/null %s 2>&1 \
2 @ RUN: | FileCheck %s
4 .syntax unified
5 .thumb
7 .eabi_attribute Tag_unknown_name, 0
8 @ CHECK: error: attribute name not recognised: Tag_unknown_name
9 @ CHECK: .eabi_attribute Tag_unknown_name
10 @ CHECK: ^
12 .eabi_attribute [non_constant_expression], 0
13 @ CHECK: error: expected numeric constant
14 @ CHECK: .eabi_attribute [non_constant_expression], 0
15 @ CHECK: ^
17 .eabi_attribute 42, "forty two"
18 @ CHECK: error: expected numeric constant
19 @ CHECK: .eabi_attribute 42, "forty two"
20 @ CHECK: ^
22 .eabi_attribute 43, 43
23 @ CHECK: error: bad string constant
24 @ CHECK: .eabi_attribute 43, 43
25 @ CHECK: ^
27 .eabi_attribute 0
28 @ CHECK: error: comma expected
29 @ CHECK: .eabi_attribute 0
30 @ CHECK: ^
32 .eabi_attribute Tag_compatibility, 1
33 @ CHECK: error: comma expected
34 @ CHECK: .eabi_attribute Tag_compatibility, 1
35 @ CHECK: ^
37 .eabi_attribute Tag_MPextension_use_old, 0
38 @ CHECK: error: attribute name not recognised: Tag_MPextension_use_old
39 @ CHECK: .eabi_attribute Tag_MPextension_use_old, 0
40 @ CHECK: ^