]> granicus.if.org Git - clang/commitdiff
Remove dependence on system headers from this test, to try to make the Windows bots...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 9 May 2013 22:45:27 +0000 (22:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 9 May 2013 22:45:27 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181558 91177308-0d34-0410-b5e6-96231b3b80d8

test/Headers/Inputs/include/complex.h [new file with mode: 0644]
test/Headers/Inputs/include/math.h [new file with mode: 0644]
test/Headers/tgmath.c

diff --git a/test/Headers/Inputs/include/complex.h b/test/Headers/Inputs/include/complex.h
new file mode 100644 (file)
index 0000000..1ed5f53
--- /dev/null
@@ -0,0 +1,3 @@
+#pragma once
+
+#define complex _Complex
diff --git a/test/Headers/Inputs/include/math.h b/test/Headers/Inputs/include/math.h
new file mode 100644 (file)
index 0000000..6f70f09
--- /dev/null
@@ -0,0 +1 @@
+#pragma once
index a95e33a53c44e95446b5285421a0c3fadc57ffa3..b6694369834ecfc18c95780cbe3a850dc24c0c40 100644 (file)
@@ -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)) == sizeof(l), "");
 _Static_assert(sizeof(logb(f)) == sizeof(f), "");
 _Static_assert(sizeof(logb(d)) == sizeof(d), "");
 _Static_assert(sizeof(logb(l)) == sizeof(l), "");
-
-#endif