summaryrefslogtreecommitdiff
path: root/test/Parser/ms-inline-asm-nested-braces.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/ms-inline-asm-nested-braces.c')
-rw-r--r--test/Parser/ms-inline-asm-nested-braces.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Parser/ms-inline-asm-nested-braces.c b/test/Parser/ms-inline-asm-nested-braces.c
new file mode 100644
index 000000000000..58b055bb1a2a
--- /dev/null
+++ b/test/Parser/ms-inline-asm-nested-braces.c
@@ -0,0 +1,9 @@
+// REQUIRES: x86-registered-target
+// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -verify -fasm-blocks
+
+int t_fail() { // expected-note {{to match this}}
+ __asm
+ { // expected-note {{to match this}}
+ { // expected-note {{to match this}}
+ {
+ } // expected-error 3 {{expected}}