//
//===----------------------------------------------------------------------===//
-// RUN: %{compile} -fsyntax-only
+// Code on Windows expects to be able to do:
+//
+// #define _USE_MATH_DEFINES
+// #include <math.h>
+//
+// and receive the definitions of mathematical constants, even if <math.h>
+// has previously been included. Make sure that works.
+//
#ifdef _MSC_VER
+# include <math.h>
+# define _USE_MATH_DEFINES
+# include <math.h>
-#include <math.h>
-
-#define _USE_MATH_DEFINES
-#include <math.h>
-
-#ifndef M_PI
-#error M_PI not defined
+# ifndef M_PI
+# error M_PI not defined
+# endif
#endif
-#endif
+int main() { }
//
//===----------------------------------------------------------------------===//
-// Test that we can include each header in two TU's and link them together.
-
-// RUN: %{compile} -fsyntax-only
+// Test that headers are not tripped up by the surrounding code defining the
+// min() and max() macros.
// Prevent <ext/hash_map> from generating deprecated warnings for this test.
#if defined(__DEPRECATED)
TEST_MACROS();
#include <ext/hash_set>
TEST_MACROS();
+
+int main() { }
// Ensure that none of the standard C++ headers implicitly include cassert or
// assert.h (because assert() is implemented as a macro).
-// RUN: %{compile} -fsyntax-only
-
// Prevent <ext/hash_map> from generating deprecated warnings for this test.
#if defined(__DEPRECATED)
#undef __DEPRECATED
#ifdef assert
#error "Do not include cassert or assert.h in standard header files"
#endif
+
+int main() { }