libstdc++: Fix new tests that fail for ILP32 targets
* testsuite/20_util/integer_comparisons/equal.cc: Fix invalid assumption that long is wider than int. * testsuite/20_util/integer_comparisons/greater_equal.cc: Likewise. * testsuite/20_util/integer_comparisons/less.cc: Likewise. * testsuite/20_util/integer_comparisons/less_equal.cc: Likewise. * testsuite/20_util/integer_comparisons/not_equal.cc: Likewise.
This commit is contained in:
parent
3fe1910509
commit
ce7b39d0fc
6 changed files with 12 additions and 5 deletions
|
@ -1,5 +1,12 @@
|
|||
2020-02-18 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* testsuite/20_util/integer_comparisons/equal.cc: Fix invalid
|
||||
assumption that long is wider than int.
|
||||
* testsuite/20_util/integer_comparisons/greater_equal.cc: Likewise.
|
||||
* testsuite/20_util/integer_comparisons/less.cc: Likewise.
|
||||
* testsuite/20_util/integer_comparisons/less_equal.cc: Likewise.
|
||||
* testsuite/20_util/integer_comparisons/not_equal.cc: Likewise.
|
||||
|
||||
P1976R2 Fixed-size span construction from dynamic range
|
||||
* include/std/span (__cpp_lib_span): Update value.
|
||||
(span(It, size_type), span(It, End)): Make conditionally explicit. Add
|
||||
|
|
|
@ -56,7 +56,7 @@ test03()
|
|||
VERIFY( !std::cmp_equal(ss, u) );
|
||||
VERIFY( !std::cmp_equal(u, ss) );
|
||||
|
||||
unsigned long ul = (unsigned long) -1;
|
||||
unsigned long long ul = (unsigned long long) -1;
|
||||
VERIFY( !std::cmp_equal(s, ul) );
|
||||
VERIFY( !std::cmp_equal(ul, s) );
|
||||
VERIFY( !std::cmp_equal(ss, ul) );
|
||||
|
|
|
@ -62,7 +62,7 @@ test03()
|
|||
VERIFY( std::cmp_greater_equal(u, ss) );
|
||||
VERIFY( std::cmp_greater_equal(u, -2U) );
|
||||
|
||||
unsigned long ul = (unsigned long) -1;
|
||||
unsigned long long ul = (unsigned long long) -1;
|
||||
VERIFY( !std::cmp_greater_equal(s, ul) );
|
||||
VERIFY( std::cmp_greater_equal(ul, s) );
|
||||
VERIFY( !std::cmp_greater_equal(ss, ul) );
|
||||
|
|
|
@ -60,7 +60,7 @@ test03()
|
|||
VERIFY( std::cmp_less(ss, u) );
|
||||
VERIFY( !std::cmp_less(u, ss) );
|
||||
|
||||
unsigned long ul = (unsigned long) -1;
|
||||
unsigned long long ul = (unsigned long long) -1;
|
||||
VERIFY( std::cmp_less(s, ul) );
|
||||
VERIFY( !std::cmp_less(ul, s) );
|
||||
VERIFY( std::cmp_less(ss, ul) );
|
||||
|
|
|
@ -62,7 +62,7 @@ test03()
|
|||
VERIFY( !std::cmp_less_equal(u, ss) );
|
||||
VERIFY( std::cmp_less_equal(-2U, u) );
|
||||
|
||||
unsigned long ul = (unsigned long) -1;
|
||||
unsigned long long ul = (unsigned long long) -1;
|
||||
VERIFY( std::cmp_less_equal(s, ul) );
|
||||
VERIFY( !std::cmp_less_equal(ul, s) );
|
||||
VERIFY( std::cmp_less_equal(ss, ul) );
|
||||
|
|
|
@ -57,7 +57,7 @@ test03()
|
|||
VERIFY( std::cmp_not_equal(ss, u) );
|
||||
VERIFY( std::cmp_not_equal(u, ss) );
|
||||
|
||||
unsigned long ul = (unsigned long) -1;
|
||||
unsigned long long ul = (unsigned long long) -1;
|
||||
VERIFY( std::cmp_not_equal(s, ul) );
|
||||
VERIFY( std::cmp_not_equal(ul, s) );
|
||||
VERIFY( std::cmp_not_equal(ss, ul) );
|
||||
|
|
Loading…
Add table
Reference in a new issue