48 lines · plain
1@ Tests to check that '@' does not get lexed as an identifier for arm2@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi | FileCheck %s3@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi 2>&1 | FileCheck %s --check-prefix=ERROR4 5foo:6 bl boo@plt should be ignored7 bl goo@plt8 .long bar@got to parse this as a comment9 .long baz@got10 add r0, r0@ignore this extra junk11 12@ the symver directive should allow @ in the second symbol name13defined1:14defined2:15defined3:16bar:17 .symver defined1, bar1@zed18 .symver defined2, bar3@@zed19 .symver defined3, bar5@@@zed20 21far:22 .long baz@got23 24@CHECK-LABEL: foo:25@CHECK: bl boo26@CHECK-NOT: @27@CHECK: bl goo28@CHECK-NOT: @29@CHECK: .long bar30@CHECK-NOT: @31@CHECK: .long baz32@CHECK-NOT: @33@CHECK: add r0, r034@CHECK-NOT: @35 36@CHECK-LABEL: bar:37@CHECK: .symver defined1, bar1@zed38@CHECK: .symver defined2, bar3@@zed39@CHECK: .symver defined3, bar5@@@zed40 41@ Make sure we did not mess up the parser state and it still lexes42@ comments correctly by excluding the @ in normal symbols43@CHECK-LABEL: far:44@CHECK: .long baz45@CHECK-NOT: @46 47@ERROR-NOT: error:48