diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-06-12 20:30:26 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-06-12 20:30:26 +0000 |
commit | b3b26bfe61558232ccd0053697a143a30ac1e079 (patch) | |
tree | 6f6954812de27747814271ca1b34b8978f36ab86 /test/Parser/ms-inline-asm.c | |
parent | afaa421c44f29e3e51d0cff9bfb80275f58a6bba (diff) |
[ms-inline-asm] The __asm keyword is a statement separator, so multiple asm
statements are allowed on the same line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/ms-inline-asm.c')
-rw-r--r-- | test/Parser/ms-inline-asm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/ms-inline-asm.c b/test/Parser/ms-inline-asm.c index 3a1efb0984..1c8c881dec 100644 --- a/test/Parser/ms-inline-asm.c +++ b/test/Parser/ms-inline-asm.c @@ -27,6 +27,12 @@ int t7() { pop ebx } } +void t8() { + __asm nop __asm nop __asm nop +} +void t9() { + __asm nop __asm nop ; __asm nop +} int t_fail() { // expected-note {{to match this}} __asm __asm { // expected-error 3 {{expected}} expected-note {{to match this}} |