]> granicus.if.org Git - clang/commitdiff
Just disable the compiler-builtins module test on MSVC for now
authorDouglas Gregor <dgregor@apple.com>
Sun, 29 Jan 2012 23:53:54 +0000 (23:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 29 Jan 2012 23:53:54 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149214 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/tgmath.h
test/Modules/compiler_builtins.m

index 554af6cf740bdb9c74823c32d796310948f9e180..1b0b9d24c1d52d90d025c8b199a97b32c7ec42dc 100644 (file)
@@ -30,9 +30,7 @@
 
 /* C++ handles type genericity with overloading in math.h. */
 #ifndef __cplusplus
-#if __has_include(<complex.h>)
-#  include <complex.h>
-#endif
+#include <complex.h>
 
 #define _TG_ATTRSp __attribute__((__overloadable__))
 #define _TG_ATTRS __attribute__((__overloadable__, __always_inline__))
index 3545604414aefea2b589b2d04003dcdf7411e763..38ce2c98333fee68bb9d7b55caa82305008979b3 100644 (file)
@@ -1,6 +1,9 @@
 // RUN: rm -rf %t
 // RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s -Xclang -verify
 
+// Note: disable test on MSVC, which doesn't have <complex.h>.
+// REQUIRES: shell
+
 @import __compiler_builtins.float_constants;
 
 float getFltMax() { return FLT_MAX; }