statements are allowed on the same line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158372
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Tok.is(tok::eof))
break;
+ // The asm keyword is a statement separator, so multiple asm statements
+ // are allowed.
+ if (!InAsmComment && Tok.is(tok::kw_asm))
+ break;
+
if (!InAsmComment && Tok.is(tok::semi)) {
// A semicolon in an asm is the start of a comment.
InAsmComment = true;
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}}