From 192b030c8a887aa34db56d709136e533a454b2f3 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 9 May 2013 22:45:27 +0000 Subject: [PATCH] Remove dependence on system headers from this test, to try to make the Windows bots happier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181558 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Headers/Inputs/include/complex.h | 3 +++ test/Headers/Inputs/include/math.h | 1 + test/Headers/tgmath.c | 7 ++----- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 test/Headers/Inputs/include/complex.h create mode 100644 test/Headers/Inputs/include/math.h diff --git a/test/Headers/Inputs/include/complex.h b/test/Headers/Inputs/include/complex.h new file mode 100644 index 0000000000..1ed5f53092 --- /dev/null +++ b/test/Headers/Inputs/include/complex.h @@ -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 index 0000000000..6f70f09bee --- /dev/null +++ b/test/Headers/Inputs/include/math.h @@ -0,0 +1 @@ +#pragma once diff --git a/test/Headers/tgmath.c b/test/Headers/tgmath.c index a95e33a53c..b669436983 100644 --- a/test/Headers/tgmath.c +++ b/test/Headers/tgmath.c @@ -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 @@ -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 -- 2.40.0