From cedbdd7feef9f8b644a62af246a0dd8fe7bae8d5 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 8 Oct 2016 01:32:56 +0000 Subject: [PATCH] Remove all _LIBCPP_VERSION tests from under test/std git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@283644 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../depr/depr.c.headers/ciso646.pass.cpp | 20 ++++++++++++++++ .../depr/depr.c.headers/complex.h.pass.cpp | 21 +++++++++++++++++ .../depr/depr.c.headers/tgmath_h.pass.cpp | 23 +++++++++++++++++++ test/libcxx/numerics/c.math/ctgmath.pass.cpp | 22 ++++++++++++++++++ test/libcxx/numerics/c.math/tgmath_h.pass.cpp | 20 ++++++++++++++++ .../numerics/c.math/version_cmath.pass.cpp | 0 .../complex.number/ccmplx/ccomplex.pass.cpp | 21 +++++++++++++++++ test/std/depr/depr.c.headers/ciso646.pass.cpp | 4 ---- .../depr/depr.c.headers/complex.h.pass.cpp | 4 ---- .../std/depr/depr.c.headers/tgmath_h.pass.cpp | 4 ---- test/std/numerics/c.math/ctgmath.pass.cpp | 4 ---- test/std/numerics/c.math/tgmath_h.pass.cpp | 4 ---- .../complex.number/ccmplx/ccomplex.pass.cpp | 4 ---- 13 files changed, 127 insertions(+), 24 deletions(-) create mode 100644 test/libcxx/depr/depr.c.headers/ciso646.pass.cpp create mode 100644 test/libcxx/depr/depr.c.headers/complex.h.pass.cpp create mode 100644 test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp create mode 100644 test/libcxx/numerics/c.math/ctgmath.pass.cpp create mode 100644 test/libcxx/numerics/c.math/tgmath_h.pass.cpp rename test/{std => libcxx}/numerics/c.math/version_cmath.pass.cpp (100%) create mode 100644 test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp diff --git a/test/libcxx/depr/depr.c.headers/ciso646.pass.cpp b/test/libcxx/depr/depr.c.headers/ciso646.pass.cpp new file mode 100644 index 000000000..725a7ab13 --- /dev/null +++ b/test/libcxx/depr/depr.c.headers/ciso646.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +#include + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ +} diff --git a/test/libcxx/depr/depr.c.headers/complex.h.pass.cpp b/test/libcxx/depr/depr.c.headers/complex.h.pass.cpp new file mode 100644 index 000000000..da0707990 --- /dev/null +++ b/test/libcxx/depr/depr.c.headers/complex.h.pass.cpp @@ -0,0 +1,21 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +#include + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex d; +} diff --git a/test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp b/test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp new file mode 100644 index 000000000..a2ef814dc --- /dev/null +++ b/test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp @@ -0,0 +1,23 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +#include + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex cd; + double x = sin(1.0); + (void)x; // to placate scan-build +} diff --git a/test/libcxx/numerics/c.math/ctgmath.pass.cpp b/test/libcxx/numerics/c.math/ctgmath.pass.cpp new file mode 100644 index 000000000..278217e04 --- /dev/null +++ b/test/libcxx/numerics/c.math/ctgmath.pass.cpp @@ -0,0 +1,22 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +#include + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex cd; + double x = std::sin(0); +} diff --git a/test/libcxx/numerics/c.math/tgmath_h.pass.cpp b/test/libcxx/numerics/c.math/tgmath_h.pass.cpp new file mode 100644 index 000000000..23143c714 --- /dev/null +++ b/test/libcxx/numerics/c.math/tgmath_h.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +#include + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ +} diff --git a/test/std/numerics/c.math/version_cmath.pass.cpp b/test/libcxx/numerics/c.math/version_cmath.pass.cpp similarity index 100% rename from test/std/numerics/c.math/version_cmath.pass.cpp rename to test/libcxx/numerics/c.math/version_cmath.pass.cpp diff --git a/test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp b/test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp new file mode 100644 index 000000000..21aaa669f --- /dev/null +++ b/test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp @@ -0,0 +1,21 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +#include + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex d; +} diff --git a/test/std/depr/depr.c.headers/ciso646.pass.cpp b/test/std/depr/depr.c.headers/ciso646.pass.cpp index 725a7ab13..6a686dc0c 100644 --- a/test/std/depr/depr.c.headers/ciso646.pass.cpp +++ b/test/std/depr/depr.c.headers/ciso646.pass.cpp @@ -11,10 +11,6 @@ #include -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { } diff --git a/test/std/depr/depr.c.headers/complex.h.pass.cpp b/test/std/depr/depr.c.headers/complex.h.pass.cpp index da0707990..0e3fd3e99 100644 --- a/test/std/depr/depr.c.headers/complex.h.pass.cpp +++ b/test/std/depr/depr.c.headers/complex.h.pass.cpp @@ -11,10 +11,6 @@ #include -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex d; diff --git a/test/std/depr/depr.c.headers/tgmath_h.pass.cpp b/test/std/depr/depr.c.headers/tgmath_h.pass.cpp index a2ef814dc..965a8de3c 100644 --- a/test/std/depr/depr.c.headers/tgmath_h.pass.cpp +++ b/test/std/depr/depr.c.headers/tgmath_h.pass.cpp @@ -11,10 +11,6 @@ #include -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex cd; diff --git a/test/std/numerics/c.math/ctgmath.pass.cpp b/test/std/numerics/c.math/ctgmath.pass.cpp index 278217e04..04a062804 100644 --- a/test/std/numerics/c.math/ctgmath.pass.cpp +++ b/test/std/numerics/c.math/ctgmath.pass.cpp @@ -11,10 +11,6 @@ #include -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex cd; diff --git a/test/std/numerics/c.math/tgmath_h.pass.cpp b/test/std/numerics/c.math/tgmath_h.pass.cpp index 23143c714..65fc54ebd 100644 --- a/test/std/numerics/c.math/tgmath_h.pass.cpp +++ b/test/std/numerics/c.math/tgmath_h.pass.cpp @@ -11,10 +11,6 @@ #include -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { } diff --git a/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp b/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp index 21aaa669f..4b8941468 100644 --- a/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp +++ b/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp @@ -11,10 +11,6 @@ #include -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex d;