diff options
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.cpp | 4 | 
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 b4d870fad11e..25b9ce62cc1d 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, ""); | 
