diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-26 18:33:59 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-26 18:33:59 +0000 |
commit | 0130f82cccb9b8e64ae89288f55a07a133711316 (patch) | |
tree | 28e8643a22e8ad27bf400a75f5b489cb1a065757 /clang/test/Sema/ms-inline-asm.c | |
parent | 5859356d80c9b8005ea796857688f2857380f64e (diff) | |
download | bcm5719-llvm-0130f82cccb9b8e64ae89288f55a07a133711316.tar.gz bcm5719-llvm-0130f82cccb9b8e64ae89288f55a07a133711316.zip |
[ms-inline asm] Add test case for r166792.
llvm-svn: 166793
Diffstat (limited to 'clang/test/Sema/ms-inline-asm.c')
-rw-r--r-- | clang/test/Sema/ms-inline-asm.c | 14 |
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!}} + } + } |