War on tabs
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@187906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,8 +28,8 @@ test(typename std::enable_if<std::is_integral<T>::value>::type* = 0)
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
constexpr T val {x};
|
||||
static_assert(std::imag(val) == 0, "");
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.imag() == x, "" );
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.imag() == x, "" );
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -42,8 +42,8 @@ test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0)
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
constexpr T val {x};
|
||||
static_assert(std::imag(val) == 0, "");
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.imag() == x, "" );
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.imag() == x, "" );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ test(typename std::enable_if<std::is_integral<T>::value>::type* = 0)
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
constexpr T val {x};
|
||||
static_assert(std::real(val) == val, "");
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.real() == x, "" );
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.real() == x, "" );
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -42,8 +42,8 @@ test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0)
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
constexpr T val {x};
|
||||
static_assert(std::real(val) == val, "");
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.real() == x, "" );
|
||||
constexpr std::complex<T> t{val, val};
|
||||
static_assert(t.real() == x, "" );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,8 @@ test()
|
||||
assert(!(lhs != rhs));
|
||||
}
|
||||
|
||||
test_constexpr<T> ();
|
||||
}
|
||||
test_constexpr<T> ();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user