aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Sema/ms-inline-asm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Sema/ms-inline-asm.c b/test/Sema/ms-inline-asm.c
index 4f6d689b7e..703b834e60 100644
--- a/test/Sema/ms-inline-asm.c
+++ b/test/Sema/ms-inline-asm.c
@@ -19,4 +19,16 @@ void f() {
__asm {
mov eax, 1+++ // expected-error 2 {{unknown token in expression}}
}
+ f();
+ __asm {
+ mov eax, LENGTH bar // expected-error {{Unable to lookup expr!}}
+ }
+ f();
+ __asm {
+ mov eax, SIZE bar // expected-error {{Unable to lookup expr!}}
+ }
+ f();
+ __asm {
+ mov eax, TYPE bar // expected-error {{Unable to lookup expr!}}
+ }
}