diff options
Diffstat (limited to 'test/libcxx/numerics/c.math/ctgmath.pass.cpp')
-rw-r--r-- | test/libcxx/numerics/c.math/ctgmath.pass.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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 000000000000..815502f1ccaf --- /dev/null +++ b/test/libcxx/numerics/c.math/ctgmath.pass.cpp @@ -0,0 +1,24 @@ +//===----------------------------------------------------------------------===// +// +// 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; + ((void)cd); + double x = std::sin(0); + ((void)x); +} |