]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix test that fails for targets without __int128 [PR 96042]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 13 Nov 2020 13:04:10 +0000 (13:04 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 13 Nov 2020 13:11:06 +0000 (13:11 +0000)
commit12042aeb9336f20b9225b2e5139e5f6c9bde7642
tree59b0bab54da52099eaae8668021f0b2903114455
parent5a0f596a4b0ec9758e1e3ebeca21aceaf0b4bd63
libstdc++: Fix test that fails for targets without __int128 [PR 96042]

When backporting this test (and the changes it depends on) I forgot that
the __max_diff_type and __max_size_type classes are only present on
trunk, not the gcc-10 branch. That using iota_view<long long, long long>
oonly works correctly when __int128 is available, so the test fails on
32-bit targets.

This just skips the failing check.

PR libstdc++/96042
* testsuite/std/ranges/iota/96042.cc: Only assert that the
difference type is wider than long long if __int128 is
supported.
libstdc++-v3/testsuite/std/ranges/iota/96042.cc