diff options
Diffstat (limited to 'test/libcxx/depr')
-rw-r--r-- | test/libcxx/depr/depr.c.headers/ciso646.pass.cpp | 20 | ||||
-rw-r--r-- | test/libcxx/depr/depr.c.headers/complex.h.pass.cpp | 21 | ||||
-rw-r--r-- | test/libcxx/depr/depr.c.headers/locale_h.pass.cpp | 20 | ||||
-rw-r--r-- | test/libcxx/depr/depr.c.headers/tgmath_h.pass.cpp | 23 |
4 files changed, 84 insertions, 0 deletions
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 000000000000..725a7ab1331b --- /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. +// +//===----------------------------------------------------------------------===// + +// <ciso646> + +#include <ciso646> + +#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 000000000000..da0707990d80 --- /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. +// +//===----------------------------------------------------------------------===// + +// <complex.h> + +#include <complex.h> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ + std::complex<double> d; +} diff --git a/test/libcxx/depr/depr.c.headers/locale_h.pass.cpp b/test/libcxx/depr/depr.c.headers/locale_h.pass.cpp new file mode 100644 index 000000000000..bd4d3501d072 --- /dev/null +++ b/test/libcxx/depr/depr.c.headers/locale_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. +// +//===----------------------------------------------------------------------===// + +// <locale.h> + +#include <locale.h> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ +} 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 000000000000..a2ef814dcae1 --- /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. +// +//===----------------------------------------------------------------------===// + +// <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 +} |