Fix a handful of tests that fail in C++03

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@243392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-07-28 07:31:50 +00:00
parent bfb46e486d
commit b47a434d60
8 changed files with 35 additions and 35 deletions

View File

@@ -37,8 +37,8 @@ template <class TestType, class IntType>
void test_div_struct() {
TestType obj;
static_assert(sizeof(obj) >= sizeof(IntType) * 2, ""); // >= to account for alignment.
static_assert(std::is_same<decltype(obj.quot), IntType>::value, "");
static_assert(std::is_same<decltype(obj.rem), IntType>::value, "");
static_assert((std::is_same<decltype(obj.quot), IntType>::value), "");
static_assert((std::is_same<decltype(obj.rem), IntType>::value), "");
((void) obj);
};
@@ -46,7 +46,7 @@ int main()
{
std::size_t s = 0;
((void)s);
static_assert(std::is_same<std::size_t, decltype(sizeof(int))>::value, "");
static_assert((std::is_same<std::size_t, decltype(sizeof(int))>::value), "");
test_div_struct<std::div_t, int>();
test_div_struct<std::ldiv_t, long>();
test_div_struct<std::lldiv_t, long long>();