]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/23_containers/vector/capacity/shrink_to_fit.cc
libstdc++: Fix some tests that fail with -fno-exceptions
authorJonathan Wakely <jwakely@redhat.com>
Wed, 7 Jun 2023 12:01:36 +0000 (13:01 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 7 Jun 2023 15:51:59 +0000 (16:51 +0100)
commitfa8b4468e0d124bec0fdbfc0a168bd8c377b08ec
tree466b645774dcfb89557b6f4f6985e7d77e6ba3f3
parentae12aced97b41c7498ffc5b4dd314878289547ab
libstdc++: Fix some tests that fail with -fno-exceptions

libstdc++-v3/ChangeLog:

* testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
Require effective target exceptions_enabled instead of using
dg-skip-if.
* testsuite/23_containers/vector/capacity/constexpr.cc: Expect
shrink_to_fit() to be a no-op without exceptions enabled.
* testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
Likewise.
* testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
Require effective target exceptions_enabled.
* testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
Likewise.
* testsuite/ext/mt_allocator/check_allocate_max_size.cc:
Likewise.
* testsuite/ext/new_allocator/check_allocate_max_size.cc:
Likewise.
* testsuite/ext/pool_allocator/check_allocate_max_size.cc:
Likewise.
* testsuite/ext/throw_allocator/check_allocate_max_size.cc:
Likewise.
libstdc++-v3/testsuite/18_support/nested_exception/rethrow_if_nested-term.cc
libstdc++-v3/testsuite/23_containers/vector/capacity/constexpr.cc
libstdc++-v3/testsuite/23_containers/vector/capacity/shrink_to_fit.cc
libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/malloc_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/mt_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/new_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/pool_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/throw_allocator/check_allocate_max_size.cc