Parse Tag_compatibility correctly.
[oota-llvm.git] / test / MC / ARM / directive-eabi_attribute-diagnostics.s
1 @ RUN: not llvm-mc -triple armv7-elf -filetype asm -o /dev/null %s 2>&1 \
2 @ RUN:   | FileCheck %s
3
4         .syntax unified
5         .thumb
6
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:                        ^
11
12         .eabi_attribute [non_constant_expression], 0
13 @ CHECK: error: expected numeric constant
14 @ CHECK:        .eabi_attribute [non_constant_expression], 0
15 @ CHECK:                        ^
16
17         .eabi_attribute 42, "forty two"
18 @ CHECK: error: expected numeric constant
19 @ CHECK:        .eabi_attribute 42, "forty two"
20 @ CHECK:                            ^
21
22         .eabi_attribute 43, 43
23 @ CHECK: error: bad string constant
24 @ CHECK:        .eabi_attribute 43, 43
25 @ CHECK:                            ^
26
27         .eabi_attribute 0
28 @ CHECK: error: comma expected
29 @ CHECK:        .eabi_attribute 0
30 @ CHECK:                         ^
31
32         .eabi_attribute Tag_compatibility, 1
33 @ CHECK: error: comma expected
34 @ CHECK: .eabi_attribute Tag_compatibility, 1
35 @ CHECK:                                     ^
36
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:                        ^
41