[cfe-commits] r166793 - /cfe/trunk/test/Sema/ms-inline-asm.c

Chad Rosier mcrosier at apple.com
Fri Oct 26 11:33:59 PDT 2012


Author: mcrosier
Date: Fri Oct 26 13:33:59 2012
New Revision: 166793

URL: http://llvm.org/viewvc/llvm-project?rev=166793&view=rev
Log:
[ms-inline asm] Add test case for r166792.

Modified:
    cfe/trunk/test/Sema/ms-inline-asm.c

Modified: cfe/trunk/test/Sema/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/ms-inline-asm.c?rev=166793&r1=166792&r2=166793&view=diff
==============================================================================
--- cfe/trunk/test/Sema/ms-inline-asm.c (original)
+++ cfe/trunk/test/Sema/ms-inline-asm.c Fri Oct 26 13:33:59 2012
@@ -6,6 +6,7 @@
 }
 
 void f() {
+  int foo;
   __asm { 
     mov eax, eax
     .unknowndirective // expected-error {{unknown directive}}
@@ -18,4 +19,17 @@
   __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!}}
+  }
+
 }





More information about the cfe-commits mailing list