]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add assertion to debug_allocator test
authorJonathan Wakely <jwakely@redhat.com>
Tue, 16 May 2023 08:58:19 +0000 (09:58 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 16 May 2023 08:59:19 +0000 (09:59 +0100)
libstdc++-v3/ChangeLog:

* testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
assertion to ensure expected exception is throw.

libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc

index 1f0a9eb0b61554238c082cd53cf94504795b0f0d..c5bcafb04e9f5b547b1a146a35c23377858a5ad3 100644 (file)
@@ -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)
     {