aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/MicrosoftExtensions.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-29 10:02:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-29 10:02:16 +0000
commitd03de6aaa312d57dcd6e2bc76bed1e89f5c5019d (patch)
tree6eb0b96b1c0883d75befbcd1d33e372f78493b93 /test/Parser/MicrosoftExtensions.c
parent93384a910cb98f3a128b76e6043f149e1b384c65 (diff)
Downgrade 'attribute ignored when parsing type' from error to warning, to match
the diagnostic's warn_ name. Switch some places (notably C++11 attributes) which really wanted an error over to a different diagnostic. Finally, suppress the diagnostic entirely for __ptr32, __ptr64 and __w64, to avoid producing diagnostics in important system headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/MicrosoftExtensions.c')
-rw-r--r--test/Parser/MicrosoftExtensions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Parser/MicrosoftExtensions.c b/test/Parser/MicrosoftExtensions.c
index 8a1d166924..4c6f4f891d 100644
--- a/test/Parser/MicrosoftExtensions.c
+++ b/test/Parser/MicrosoftExtensions.c
@@ -1,4 +1,3 @@
-// REQUIRES: disabled
// RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -verify -fms-extensions -Wno-missing-declarations -x objective-c++ %s
__stdcall int func0();
int __stdcall func();
@@ -21,12 +20,15 @@ void * __ptr32 PtrToPtr32(const void *p)
void __forceinline InterlockedBitTestAndSet (long *Base, long Bit)
{
+ // FIXME: Re-enable this once MS inline asm stabilizes.
+#if 0
__asm {
mov eax, Bit
mov ecx, Base
lock bts [ecx], eax
setc al
};
+#endif
}
_inline int foo99() { return 99; }