summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-29 23:53:54 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-29 23:53:54 +0000
commitc93a8722066ad25b24efd17c71c26b34eb42379a (patch)
treed25c576de3d434cc13a4ef4ff479592ae57cd77e
parente8f900bdccb67a8c041ae8d68b40f3a18f9de271 (diff)
downloadbcm5719-llvm-c93a8722066ad25b24efd17c71c26b34eb42379a.tar.gz
bcm5719-llvm-c93a8722066ad25b24efd17c71c26b34eb42379a.zip
Just disable the compiler-builtins module test on MSVC for now
llvm-svn: 149214
-rw-r--r--clang/lib/Headers/tgmath.h4
-rw-r--r--clang/test/Modules/compiler_builtins.m3
2 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Headers/tgmath.h b/clang/lib/Headers/tgmath.h
index 554af6cf740..1b0b9d24c1d 100644
--- a/clang/lib/Headers/tgmath.h
+++ b/clang/lib/Headers/tgmath.h
@@ -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__))
diff --git a/clang/test/Modules/compiler_builtins.m b/clang/test/Modules/compiler_builtins.m
index 3545604414a..38ce2c98333 100644
--- a/clang/test/Modules/compiler_builtins.m
+++ b/clang/test/Modules/compiler_builtins.m
@@ -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; }
OpenPOWER on IntegriCloud