diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-24 21:42:51 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-24 21:42:51 +0000 |
commit | 56d7f2348a182002563700db2158da0c6fc115a5 (patch) | |
tree | 0c9e3ad18f842715c380f8508b14b2f1526e464c /test/Parser/ms-inline-asm.c | |
parent | 44cceb96ea00534136a61dbbe738ad9beaa87793 (diff) |
[ms-inline asm] Change the -fenable-experimental-ms-inline-asm option from a
CodeGen option to a LangOpt option. In turn, hoist the guard into the parser
so that we avoid the new (and fairly unstable) Sema/AST/CodeGen logic. This
should restore the behavior of clang to that prior to r158325.
<rdar://problem/12163681>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/ms-inline-asm.c')
-rw-r--r-- | test/Parser/ms-inline-asm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Parser/ms-inline-asm.c b/test/Parser/ms-inline-asm.c index 5326ce4d24..0e8b317e56 100644 --- a/test/Parser/ms-inline-asm.c +++ b/test/Parser/ms-inline-asm.c @@ -6,7 +6,7 @@ void t1(void) { M } // expected-warning {{MS-style inline assembly is not supported}} void t2(void) { __asm int 0x2c } // expected-warning {{MS-style inline assembly is not supported}} void t3(void) { __asm M2 0x2c } // expected-warning {{MS-style inline assembly is not supported}} -void* t4(void) { __asm mov eax, fs:[0x10] } // expected-warning {{MS-style inline assembly is not supported}} +void t4(void) { __asm mov eax, fs:[0x10] } // expected-warning {{MS-style inline assembly is not supported}} void t5() { __asm { // expected-warning {{MS-style inline assembly is not supported}} int 0x2c ; } asm comments are fun! }{ @@ -20,7 +20,7 @@ int t6() { __asm int 4 // expected-warning {{MS-style inline assembly is not supported}} return 10; } -int t7() { +void t7() { __asm { // expected-warning {{MS-style inline assembly is not supported}} push ebx mov ebx, 0x07 @@ -34,5 +34,5 @@ void t9() { __asm nop __asm nop ; __asm nop // expected-warning {{MS-style inline assembly is not supported}} } int t_fail() { // expected-note {{to match this}} - __asm - __asm { // expected-error 3 {{expected}} expected-note {{to match this}} + __asm // expected-warning {{MS-style inline assembly is not supported}} + __asm { // expected-warning {{MS-style inline assembly is not supported}} expected-error 3 {{expected}} expected-note {{to match this}} |