]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Test case for r170037.
authorChad Rosier <mcrosier@apple.com>
Wed, 12 Dec 2012 22:46:23 +0000 (22:46 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 12 Dec 2012 22:46:23 +0000 (22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170038 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/ms-inline-asm.c

index 8cdd54780d11ef3766ab73a1f866b8959f4e54cd..538d56ae66e87aae69e0d385ac1c10a926f44b93 100644 (file)
@@ -31,5 +31,8 @@ void f() {
   __asm {
     mov eax, LENGTH foo // expected-error {{Unsupported directive!}}
   }
-
+  f();
+  __asm {
+    mov eax, TYPE bar // expected-error {{Unable to lookup TYPE of expr!}}
+  }
 }