Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros in the numeric tests and headers
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user