Integrated assembler incorrectly lexes ARM-style comments
[oota-llvm.git] / test / MC / ARM / comment.s
1 @ Tests to check that '@' does not get lexed as an identifier for arm
2 @ RUN: llvm-mc %s -triple=armv7-linux-gnueabi  | FileCheck %s
3 @ RUN: llvm-mc %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s --check-prefix=ERROR
4
5 foo:
6   bl boo@plt should be ignored
7   bl goo@plt
8   .long bar@got to parse this as a comment
9   .long baz@got
10   add r0, r0@ignore this extra junk
11
12 @CHECK-LABEL: foo:
13 @CHECK: bl boo
14 @CHECK-NOT: @
15 @CHECK: bl goo
16 @CHECK-NOT: @
17 @CHECK: .long bar
18 @CHECK-NOT: @
19 @CHECK: .long baz
20 @CHECK-NOT: @
21 @CHECK: add r0, r0
22 @CHECK-NOT: @
23
24 @ERROR-NOT: error: