summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp b/libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp
index 77ca9d7f2aa..3027d4cdcc0 100644
--- a/libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp
+++ b/libcxx/test/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp
@@ -18,6 +18,8 @@
#include <complex>
#include <cassert>
+#include "test_macros.h"
+
int main()
{
{
@@ -26,7 +28,7 @@ int main()
assert(cf.real() == cd.real());
assert(cf.imag() == cd.imag());
}
-#ifndef _LIBCPP_HAS_NO_CONSTEXPR
+#if TEST_STD_VER >= 11
{
constexpr std::complex<double> cd(2.5, 3.5);
constexpr std::complex<float> cf(cd);
OpenPOWER on IntegriCloud