summaryrefslogtreecommitdiff
path: root/test/std/numerics/complex.number/complex.members/construct.pass.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-04-20 21:21:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-04-20 21:21:10 +0000
commit1c3313bd0215c89fb38710a1ea0762ccf32e859c (patch)
tree65e6d33ca6254b41a8f4230edff47c5344dbd019 /test/std/numerics/complex.number/complex.members/construct.pass.cpp
parent0dc0969cd0a732760f0aa79942a04e0eaef297c4 (diff)
Notes
Diffstat (limited to 'test/std/numerics/complex.number/complex.members/construct.pass.cpp')
-rw-r--r--test/std/numerics/complex.number/complex.members/construct.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/std/numerics/complex.number/complex.members/construct.pass.cpp b/test/std/numerics/complex.number/complex.members/construct.pass.cpp
index b4d870fad11ea..25b9ce62cc1d5 100644
--- a/test/std/numerics/complex.number/complex.members/construct.pass.cpp
+++ b/test/std/numerics/complex.number/complex.members/construct.pass.cpp
@@ -14,6 +14,8 @@
#include <complex>
#include <cassert>
+#include "test_macros.h"
+
template <class T>
void
test()
@@ -38,7 +40,7 @@ test()
assert(c.real() == 10.5);
assert(c.imag() == -9.5);
}
-#ifndef _LIBCPP_HAS_NO_CONSTEXPR
+#if TEST_STD_VER >= 11
{
constexpr std::complex<T> c;
static_assert(c.real() == 0, "");