summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/complex.number/complex.special/double_float_implicit.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.special/double_float_implicit.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.special/double_float_implicit.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/complex.number/complex.special/double_float_implicit.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/complex.number/complex.special/double_float_implicit.pass.cpp b/libcxx/test/std/numerics/complex.number/complex.special/double_float_implicit.pass.cpp
index 298aaa3a7a8..3bb01ac4650 100644
--- a/libcxx/test/std/numerics/complex.number/complex.special/double_float_implicit.pass.cpp
+++ b/libcxx/test/std/numerics/complex.number/complex.special/double_float_implicit.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<float> cd(2.5, 3.5);
constexpr std::complex<double> cf = cd;
OpenPOWER on IntegriCloud