summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-19 00:23:45 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-19 00:23:45 +0000
commit69154d6e071e01fe6d6745e38e565c9d8d3fe543 (patch)
treea774d41fac04dadf16a8295f973216a0920a63ba /libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp
parent97923db8919a11731d5f13f345354b2e29371d97 (diff)
downloadbcm5719-llvm-69154d6e071e01fe6d6745e38e565c9d8d3fe543.tar.gz
bcm5719-llvm-69154d6e071e01fe6d6745e38e565c9d8d3fe543.zip
Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers
llvm-svn: 300632
Diffstat (limited to 'libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp b/libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp
index b4d870fad11..25b9ce62cc1 100644
--- a/libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp
+++ b/libcxx/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, "");
OpenPOWER on IntegriCloud