diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-21 18:29:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-21 18:29:30 +0000 |
commit | 799aacfb27ac51417ad17f4548b9f7743f946e66 (patch) | |
tree | 684550dba3aa27a6d17f35a878101b68e06649e9 /test | |
parent | 64bfcbbc58ad485db157190496f0f39156b5a516 (diff) | |
download | external_llvm-799aacfb27ac51417ad17f4548b9f7743f946e66.zip external_llvm-799aacfb27ac51417ad17f4548b9f7743f946e66.tar.gz external_llvm-799aacfb27ac51417ad17f4548b9f7743f946e66.tar.bz2 |
Fix macros arguments with an underscore, dot or dollar in them. This is based
on a patch by Andy/PaX. I added the support for dot and dollar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/macros.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/MC/AsmParser/macros.s b/test/MC/AsmParser/macros.s index 2957592..dd2cc1f 100644 --- a/test/MC/AsmParser/macros.s +++ b/test/MC/AsmParser/macros.s @@ -37,3 +37,24 @@ test3 1,2 3 // CHECK: .globl "ab)(,) -- (cd)" test4 a b)(,),(cd) + +.macro test5 _a +.globl "\_a" +.endm + +test5 zed1 +// CHECK: .globl zed1 + +.macro test6 $a +.globl "\$a" +.endm + +test6 zed2 +// CHECK: .globl zed2 + +.macro test7 .a +.globl "\.a" +.endm + +test7 zed3 +// CHECK: .globl zed3 |