summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/ms-inline-asm.c
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2014-07-15 02:21:41 +0000
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2014-07-15 02:21:41 +0000
commit833ed943d643b8c5a889a8fe1a3486a41201458c (patch)
tree33547a15e314e3f9c303c139d006efa03cf3c335 /clang/test/Parser/ms-inline-asm.c
parentca3976f7aef49af78926ff542809e28c2eac22f1 (diff)
downloadbcm5719-llvm-833ed943d643b8c5a889a8fe1a3486a41201458c.tar.gz
bcm5719-llvm-833ed943d643b8c5a889a8fe1a3486a41201458c.zip
Don't get confused on the number of braces when braces start after the first __asm
Summary: Without this, we would not consume the closing brace which would cause the parser to start consuming C++ and bad things would happen. Reviewers: majnemer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4505 llvm-svn: 213032
Diffstat (limited to 'clang/test/Parser/ms-inline-asm.c')
-rw-r--r--clang/test/Parser/ms-inline-asm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Parser/ms-inline-asm.c b/clang/test/Parser/ms-inline-asm.c
index 564f0081d38..00508f5cf09 100644
--- a/clang/test/Parser/ms-inline-asm.c
+++ b/clang/test/Parser/ms-inline-asm.c
@@ -45,6 +45,9 @@ void t10() {
}
}
}
+void t11() {
+ do { __asm mov eax, 0 __asm { __asm mov edx, 1 } } while(0);
+}
int t_fail() { // expected-note {{to match this}}
__asm
__asm { // expected-error 3 {{expected}} expected-note {{to match this}}
OpenPOWER on IntegriCloud