diff options
Diffstat (limited to 'libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp')
-rw-r--r-- | libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp b/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp index d1b335cd204..8191350b57f 100644 --- a/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp +++ b/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp @@ -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>(); |