From 69154d6e071e01fe6d6745e38e565c9d8d3fe543 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 19 Apr 2017 00:23:45 +0000 Subject: Cleanup _LIBCPP_HAS_NO_ macros in the numeric tests and headers llvm-svn: 300632 --- .../std/numerics/complex.number/complex.members/construct.pass.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcxx/test/std/numerics/complex.number/complex.members/construct.pass.cpp') 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 #include +#include "test_macros.h" + template 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 c; static_assert(c.real() == 0, ""); -- cgit v1.2.3