diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-12-05 23:08:09 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-12-05 23:08:09 +0000 |
commit | e23fbf1fca9be5653ca706ccefc31d5e5a3a334d (patch) | |
tree | b977629aa81c4ff182a9be0acd675c9b530d8434 /test | |
parent | 95d8255917c6d84f35ecc6693e29d00ca121a238 (diff) |
[driver, ms-inline asm] Have -fms-extensions enable the AsmBlocks language
option. MS-style inline asm can now be enabled by either -fasm-blocks or
-fms-extensions.
rdar://12808010
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Parser/MicrosoftExtensions.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Parser/MicrosoftExtensions.c b/test/Parser/MicrosoftExtensions.c index a8e7b8950d..7703999d67 100644 --- a/test/Parser/MicrosoftExtensions.c +++ b/test/Parser/MicrosoftExtensions.c @@ -18,6 +18,15 @@ void * __ptr32 PtrToPtr32(const void *p) return((void * __ptr32) (unsigned __int32) (ULONG_PTR)p ); } +void __forceinline InterlockedBitTestAndSet (long *Base, long Bit) +{ + __asm { // expected-warning {{MS-style inline assembly is not supported}} + mov eax, Bit + mov ecx, Base + lock bts [ecx], eax + setc al + }; +} _inline int foo99() { return 99; } void test_ms_alignof_alias() { |