diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-08 01:32:56 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-08 01:32:56 +0000 |
commit | f03ffb2c9bb9e330127900e79e173f5c5efa46c3 (patch) | |
tree | 64db8cd773335dc386fff8a2738e7ae453c299c4 /libcxx/test | |
parent | e58baed3a38790e5cb26abf6a595735f9c784084 (diff) | |
download | bcm5719-llvm-f03ffb2c9bb9e330127900e79e173f5c5efa46c3.tar.gz bcm5719-llvm-f03ffb2c9bb9e330127900e79e173f5c5efa46c3.zip |
Remove all _LIBCPP_VERSION tests from under test/std
llvm-svn: 283644
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/libcxx/depr/depr.c.headers/ciso646.pass.cpp | 20 | ||||
-rw-r--r-- | libcxx/test/libcxx/depr/depr.c.headers/complex.h.pass.cpp | 21 | ||||
-rw-r--r-- | libcxx/test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp | 23 | ||||
-rw-r--r-- | libcxx/test/libcxx/numerics/c.math/ctgmath.pass.cpp | 22 | ||||
-rw-r--r-- | libcxx/test/libcxx/numerics/c.math/tgmath_h.pass.cpp | 20 | ||||
-rw-r--r-- | libcxx/test/libcxx/numerics/c.math/version_cmath.pass.cpp (renamed from libcxx/test/std/numerics/c.math/version_cmath.pass.cpp) | 0 | ||||
-rw-r--r-- | libcxx/test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp | 21 | ||||
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/ciso646.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/tgmath_h.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/numerics/c.math/ctgmath.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp | 4 |
13 files changed, 127 insertions, 24 deletions
diff --git a/libcxx/test/libcxx/depr/depr.c.headers/ciso646.pass.cpp b/libcxx/test/libcxx/depr/depr.c.headers/ciso646.pass.cpp new file mode 100644 index 00000000000..725a7ab1331 --- /dev/null +++ b/libcxx/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. +// +//===----------------------------------------------------------------------===// + +// <ciso646> + +#include <ciso646> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ +} diff --git a/libcxx/test/libcxx/depr/depr.c.headers/complex.h.pass.cpp b/libcxx/test/libcxx/depr/depr.c.headers/complex.h.pass.cpp new file mode 100644 index 00000000000..da0707990d8 --- /dev/null +++ b/libcxx/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. +// +//===----------------------------------------------------------------------===// + +// <complex.h> + +#include <complex.h> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex<double> d; +} diff --git a/libcxx/test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp b/libcxx/test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp new file mode 100644 index 00000000000..a2ef814dcae --- /dev/null +++ b/libcxx/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. +// +//===----------------------------------------------------------------------===// + +// <tgmath.h> + +#include <tgmath.h> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex<double> cd; + double x = sin(1.0); + (void)x; // to placate scan-build +} diff --git a/libcxx/test/libcxx/numerics/c.math/ctgmath.pass.cpp b/libcxx/test/libcxx/numerics/c.math/ctgmath.pass.cpp new file mode 100644 index 00000000000..278217e0484 --- /dev/null +++ b/libcxx/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. +// +//===----------------------------------------------------------------------===// + +// <ctgmath> + +#include <ctgmath> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex<double> cd; + double x = std::sin(0); +} diff --git a/libcxx/test/libcxx/numerics/c.math/tgmath_h.pass.cpp b/libcxx/test/libcxx/numerics/c.math/tgmath_h.pass.cpp new file mode 100644 index 00000000000..23143c7140a --- /dev/null +++ b/libcxx/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. +// +//===----------------------------------------------------------------------===// + +// <tgmath.h> + +#include <tgmath.h> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ +} diff --git a/libcxx/test/std/numerics/c.math/version_cmath.pass.cpp b/libcxx/test/libcxx/numerics/c.math/version_cmath.pass.cpp index 1249a902e7a..1249a902e7a 100644 --- a/libcxx/test/std/numerics/c.math/version_cmath.pass.cpp +++ b/libcxx/test/libcxx/numerics/c.math/version_cmath.pass.cpp diff --git a/libcxx/test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp b/libcxx/test/libcxx/numerics/complex.number/ccmplx/ccomplex.pass.cpp new file mode 100644 index 00000000000..21aaa669fd4 --- /dev/null +++ b/libcxx/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. +// +//===----------------------------------------------------------------------===// + +// <ccomplex> + +#include <ccomplex> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex<double> d; +} diff --git a/libcxx/test/std/depr/depr.c.headers/ciso646.pass.cpp b/libcxx/test/std/depr/depr.c.headers/ciso646.pass.cpp index 725a7ab1331..6a686dc0cf6 100644 --- a/libcxx/test/std/depr/depr.c.headers/ciso646.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/ciso646.pass.cpp @@ -11,10 +11,6 @@ #include <ciso646> -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { } diff --git a/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp index da0707990d8..0e3fd3e990b 100644 --- a/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp @@ -11,10 +11,6 @@ #include <complex.h> -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex<double> d; diff --git a/libcxx/test/std/depr/depr.c.headers/tgmath_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/tgmath_h.pass.cpp index a2ef814dcae..965a8de3c56 100644 --- a/libcxx/test/std/depr/depr.c.headers/tgmath_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/tgmath_h.pass.cpp @@ -11,10 +11,6 @@ #include <tgmath.h> -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex<double> cd; diff --git a/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp b/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp index 278217e0484..04a06280450 100644 --- a/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp +++ b/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp @@ -11,10 +11,6 @@ #include <ctgmath> -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex<double> cd; diff --git a/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp b/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp index 23143c7140a..65fc54ebda5 100644 --- a/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp +++ b/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp @@ -11,10 +11,6 @@ #include <tgmath.h> -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { } diff --git a/libcxx/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp b/libcxx/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp index 21aaa669fd4..4b89414686b 100644 --- a/libcxx/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp +++ b/libcxx/test/std/numerics/complex.number/ccmplx/ccomplex.pass.cpp @@ -11,10 +11,6 @@ #include <ccomplex> -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - int main() { std::complex<double> d; |