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.
This commit is contained in:
Jonathan Wakely 2023-05-16 09:58:19 +01:00
parent 151bad4102
commit bf904527ab

View 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)
{