[ms-inline asm] Add test case for r166792.

llvm-svn: 166793
This commit is contained in:
Chad Rosier 2012-10-26 18:33:59 +00:00
parent 5859356d80
commit 0130f82ccc
1 changed files with 14 additions and 0 deletions

View File

@ -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!}}
}
}