summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/ms-inline-asm.c
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-01-18 00:51:29 +0000
committerChad Rosier <mcrosier@apple.com>2013-01-18 00:51:29 +0000
commit92c487d13ca845261e5d2fcfbc6fc2d131dcfa26 (patch)
tree59b77c45aea82f9a9d92b8a1fac3d5bac0b76953 /clang/test/Sema/ms-inline-asm.c
parent1e8f053bd151c911a363b32d2591dcf4539327e5 (diff)
downloadbcm5719-llvm-92c487d13ca845261e5d2fcfbc6fc2d131dcfa26.tar.gz
bcm5719-llvm-92c487d13ca845261e5d2fcfbc6fc2d131dcfa26.zip
[ms-inline asm] Test case for r172773.
llvm-svn: 172774
Diffstat (limited to 'clang/test/Sema/ms-inline-asm.c')
-rw-r--r--clang/test/Sema/ms-inline-asm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Sema/ms-inline-asm.c b/clang/test/Sema/ms-inline-asm.c
index 4f6d689b7e0..703b834e600 100644
--- a/clang/test/Sema/ms-inline-asm.c
+++ b/clang/test/Sema/ms-inline-asm.c
@@ -19,4 +19,16 @@ void f() {
__asm {
mov eax, 1+++ // expected-error 2 {{unknown token in expression}}
}
+ f();
+ __asm {
+ mov eax, LENGTH bar // expected-error {{Unable to lookup expr!}}
+ }
+ f();
+ __asm {
+ mov eax, SIZE bar // expected-error {{Unable to lookup expr!}}
+ }
+ f();
+ __asm {
+ mov eax, TYPE bar // expected-error {{Unable to lookup expr!}}
+ }
}
OpenPOWER on IntegriCloud