libstdc++: Fix test that fails for C++20
authorJonathan Wakely <jwakely@redhat.com>
Tue, 12 Oct 2021 14:39:18 +0000 (15:39 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 12 Oct 2021 15:05:15 +0000 (16:05 +0100)
commit727137d6ca6d3d401a0c1b4df6b9aae8b97dacd5
treed2a7beb239dc9dc3722f3866f9dda081c039abad
parent7481021364e75ba583972e15ed421a53988368ea
libstdc++: Fix test that fails for C++20

Also restore the test for 'a < a' that was removed by r12-2537 because
it is ill-formed. We still want to test operator< for tuple, we just
need to not use std::nullptr_t in that tuple type.

libstdc++-v3/ChangeLog:

* testsuite/20_util/tuple/comparison_operators/overloaded.cc:
Restore test for operator<.
* testsuite/20_util/tuple/comparison_operators/overloaded2.cc:
Adjust expected errors for C++20.
libstdc++-v3/testsuite/20_util/tuple/comparison_operators/overloaded.cc
libstdc++-v3/testsuite/20_util/tuple/comparison_operators/overloaded2.cc