summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Sema/ms-inline-asm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Sema/ms-inline-asm.c b/clang/test/Sema/ms-inline-asm.c
index 0c34b0fb4de..f6a0fdcb42e 100644
--- a/clang/test/Sema/ms-inline-asm.c
+++ b/clang/test/Sema/ms-inline-asm.c
@@ -6,6 +6,7 @@ void t1(void) {
}
void f() {
+ int foo;
__asm {
mov eax, eax
.unknowndirective // expected-error {{unknown directive}}
@@ -18,4 +19,17 @@ void f() {
__asm {
mov eax, 1+++ // expected-error 2 {{unknown token in expression}}
}
+ f();
+ __asm {
+ mov eax, TYPE cat // expected-error {{Unable to lookup TYPE of expr!}}
+ }
+ f();
+ __asm {
+ mov eax, SIZE foo // expected-error {{Unsupported directive!}}
+ }
+ f();
+ __asm {
+ mov eax, LENGTH foo // expected-error {{Unsupported directive!}}
+ }
+
}
OpenPOWER on IntegriCloud