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
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) );
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) );
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) );
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) );
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) );