r181558 - Remove dependence on system headers from this test, to try to make the Windows bots happier.

Richard Smith richard-llvm at metafoo.co.uk
Thu May 9 15:45:27 PDT 2013


Author: rsmith
Date: Thu May  9 17:45:27 2013
New Revision: 181558

URL: http://llvm.org/viewvc/llvm-project?rev=181558&view=rev
Log:
Remove dependence on system headers from this test, to try to make the Windows bots happier.

Added:
    cfe/trunk/test/Headers/Inputs/include/complex.h
    cfe/trunk/test/Headers/Inputs/include/math.h
Modified:
    cfe/trunk/test/Headers/tgmath.c

Added: cfe/trunk/test/Headers/Inputs/include/complex.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/complex.h?rev=181558&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/complex.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/complex.h Thu May  9 17:45:27 2013
@@ -0,0 +1,3 @@
+#pragma once
+
+#define complex _Complex

Added: cfe/trunk/test/Headers/Inputs/include/math.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/math.h?rev=181558&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/math.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/math.h Thu May  9 17:45:27 2013
@@ -0,0 +1 @@
+#pragma once

Modified: cfe/trunk/test/Headers/tgmath.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/tgmath.c?rev=181558&r1=181557&r2=181558&view=diff
==============================================================================
--- cfe/trunk/test/Headers/tgmath.c (original)
+++ cfe/trunk/test/Headers/tgmath.c Thu May  9 17:45:27 2013
@@ -1,6 +1,5 @@
-// RUN: %clang -fsyntax-only %s
-
-#ifdef __STDC_HOSTED__
+// RUN: %clang -fsyntax-only -isystem %S/Inputs/include -Xclang -verify %s
+// expected-no-diagnostics
 
 #include <tgmath.h>
 
@@ -37,5 +36,3 @@ _Static_assert(sizeof(fabs(lc)) == sizeo
 _Static_assert(sizeof(logb(f)) == sizeof(f), "");
 _Static_assert(sizeof(logb(d)) == sizeof(d), "");
 _Static_assert(sizeof(logb(l)) == sizeof(l), "");
-
-#endif





More information about the cfe-commits mailing list