projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e8f053
)
[ms-inline asm] Test case for r172773.
author
Chad Rosier
<mcrosier@apple.com>
Fri, 18 Jan 2013 00:51:29 +0000
(
00:51
+0000)
committer
Chad Rosier
<mcrosier@apple.com>
Fri, 18 Jan 2013 00:51:29 +0000
(
00:51
+0000)
llvm-svn: 172774
clang/test/Sema/ms-inline-asm.c
patch
|
blob
|
history
diff --git
a/clang/test/Sema/ms-inline-asm.c
b/clang/test/Sema/ms-inline-asm.c
index
4f6d689
..
703b834
100644
(file)
--- 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!}}
+ }
}