diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-05-16 09:58:19 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-05-16 09:59:19 +0100 |
commit | bf904527ab6de99106ae59c3957348006019c4cf (patch) | |
tree | 8842f0b50767cc04239b754ff84804f65ac6bf50 | |
parent | 151bad410218d266e16b90da0147d57f9d661c1a (diff) | |
download | gcc-bf904527ab6de99106ae59c3957348006019c4cf.tar.gz |
libstdc++: Add assertion to debug_allocator test
libstdc++-v3/ChangeLog:
* testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
assertion to ensure expected exception is throw.
-rw-r--r-- | libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc b/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc index 1f0a9eb0b61..c5bcafb04e9 100644 --- a/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc +++ b/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc @@ -31,7 +31,8 @@ int main() try { - __gnu_test::check_deallocate_null<allocator_type>(); + __gnu_test::check_deallocate_null<allocator_type>(); + VERIFY(false); } catch (std::runtime_error& obj) { |