diff options
| author | Reid Kleckner <reid@kleckner.net> | 2013-04-19 17:00:14 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2013-04-19 17:00:14 +0000 |
| commit | 7ab75b3f68675d04df4d75be8f9a1571ce1c4bbf (patch) | |
| tree | 28de5026b30f39ab37eae14076b56d6823aa6eb8 /clang/test/Modules | |
| parent | ec1bb4fdaf531cbca7b3707b867a6d40068f8ff9 (diff) | |
| download | bcm5719-llvm-7ab75b3f68675d04df4d75be8f9a1571ce1c4bbf.tar.gz bcm5719-llvm-7ab75b3f68675d04df4d75be8f9a1571ce1c4bbf.zip | |
Avoid names like __in that conflict with SAL in builtin headers
Microsoft's Source Annotation Language (SAL) defines a bunch of keywords
for annotating the inputs and outputs of functions. Empty definitions
for the keywords are provided by <stdlib.h> -> <crtdefs.h> -> <sal.h>.
This makes it basically impossible to include MSVC's stdlib.h and
Clang's *mmintrin.h headers at the same time if they have variables
named __in. As a workaround, I've renamed those variables.
This fixes the Modules/compiler_builtins.m test which was XFAILed,
presumably due to this conflict.
llvm-svn: 179860
Diffstat (limited to 'clang/test/Modules')
| -rw-r--r-- | clang/test/Modules/compiler_builtins.m | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/test/Modules/compiler_builtins.m b/clang/test/Modules/compiler_builtins.m index 5ea7d795c73..4b8cb5bdc5d 100644 --- a/clang/test/Modules/compiler_builtins.m +++ b/clang/test/Modules/compiler_builtins.m @@ -2,7 +2,6 @@ // RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -Xclang -verify // RUN: %clang -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -Xclang -verify // expected-no-diagnostics -// XFAIL: win32 #ifdef __SSE__ @import _Builtin_intrinsics.intel.sse; |

