summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/ms-inline-asm.c
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2014-07-25 02:27:14 +0000
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2014-07-25 02:27:14 +0000
commit2f93b448a8ca44d90b5c8d0e0c655db72093fb1b (patch)
treedbeda8a4b7b3dc103bfbb55a912acc91308cb690 /clang/test/Parser/ms-inline-asm.c
parentc9fa5dd61882c2b272d887abc3a33dae5bbbcedc (diff)
downloadbcm5719-llvm-2f93b448a8ca44d90b5c8d0e0c655db72093fb1b.tar.gz
bcm5719-llvm-2f93b448a8ca44d90b5c8d0e0c655db72093fb1b.zip
clang-cl: Merge adjacent single-line __asm blocks
Summary: This patch extends the __asm parser to make it keep parsing input tokens as inline assembly if a single-line __asm line is followed by another line starting with __asm too. It also makes sure that we correctly keep matching braces in such situations by separating the notions of how many braces we are matching and whether we are in single-line asm block mode. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4598 llvm-svn: 213916
Diffstat (limited to 'clang/test/Parser/ms-inline-asm.c')
-rw-r--r--clang/test/Parser/ms-inline-asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/ms-inline-asm.c b/clang/test/Parser/ms-inline-asm.c
index 00508f5cf09..646f547e328 100644
--- a/clang/test/Parser/ms-inline-asm.c
+++ b/clang/test/Parser/ms-inline-asm.c
@@ -50,4 +50,4 @@ void t11() {
}
int t_fail() { // expected-note {{to match this}}
__asm
- __asm { // expected-error 3 {{expected}} expected-note {{to match this}}
+ __asm { // expected-error 2 {{expected}} expected-note {{to match this}}
OpenPOWER on IntegriCloud