diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-06-12 19:03:42 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-06-12 19:03:42 +0000 |
commit | a01eddbd07aa7e864da14cae20ce772dfdd082fa (patch) | |
tree | 06cd613ae88d75862f8aebbba42fe02f52007069 /test/Parser/ms-inline-asm.c | |
parent | 8c2467567f8adc6f13ad2c0372f79ba36123a11d (diff) |
[ms-inline-asm] Cleanup MS style inline assembly parsing.
Specifically, improve the handling of whitespace, stop saving tokens that are
in comments and fix the case where we have a comment followed by a closing brace
on the next line.
Unfortunately, there's no easy way of testing this code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/ms-inline-asm.c')
-rw-r--r-- | test/Parser/ms-inline-asm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Parser/ms-inline-asm.c b/test/Parser/ms-inline-asm.c index b1af23e472..3a1efb0984 100644 --- a/test/Parser/ms-inline-asm.c +++ b/test/Parser/ms-inline-asm.c @@ -20,6 +20,13 @@ int t6() { __asm int 4 return 10; } -int t7() { // expected-note {{to match this}} +int t7() { + __asm { + push ebx + mov ebx, 0x07 + pop ebx + } +} +int t_fail() { // expected-note {{to match this}} __asm __asm { // expected-error 3 {{expected}} expected-note {{to match this}} |