diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2014-07-31 01:18:05 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2014-07-31 01:18:05 +0000 |
commit | 6a577a819f5b942e3a7f6212c2f0059e9fef8ad3 (patch) | |
tree | 8079f97b092445baf02ec1e18e4c965024c4484e /libcxx/test/language.support/support.limits | |
parent | b9a23cdcdb9649ccd312079cdab8a07fc412ec25 (diff) | |
download | bcm5719-llvm-6a577a819f5b942e3a7f6212c2f0059e9fef8ad3.tar.gz bcm5719-llvm-6a577a819f5b942e3a7f6212c2f0059e9fef8ad3.zip |
Fix numeric_limits<XXX>::is_modulo for signed arithmetic types. We were reporting true, for all arithmetic types, which is incorrect. Fix the tests which were wrong, too. This fixes PR#20158.
llvm-svn: 214371
Diffstat (limited to 'libcxx/test/language.support/support.limits')
-rw-r--r-- | libcxx/test/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libcxx/test/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp b/libcxx/test/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp index fadc0156377..6a609963d04 100644 --- a/libcxx/test/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp +++ b/libcxx/test/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp @@ -26,24 +26,24 @@ test() int main() { test<bool, false>(); - test<char, true>(); - test<signed char, true>(); +// test<char, false>(); // don't know + test<signed char, false>(); test<unsigned char, true>(); - test<wchar_t, true>(); +// test<wchar_t, false>(); // don't know #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS test<char16_t, true>(); test<char32_t, true>(); #endif // _LIBCPP_HAS_NO_UNICODE_CHARS - test<short, true>(); + test<short, false>(); test<unsigned short, true>(); - test<int, true>(); + test<int, false>(); test<unsigned int, true>(); - test<long, true>(); + test<long, false>(); test<unsigned long, true>(); - test<long long, true>(); + test<long long, false>(); test<unsigned long long, true>(); #ifndef _LIBCPP_HAS_NO_INT128 - test<__int128_t, true>(); + test<__int128_t, false>(); test<__uint128_t, true>(); #endif test<float, false>(); |