Skip to content

Commit c252aee

Browse files
Fix the comment about active exception for a noexcept_enforce test
1 parent d1d1b3a commit c252aee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gcc/testsuite/g++.dg/contracts/cpp26/noexcept-enforce3.C

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
#include <exception>
55
#include <cstdlib>
66

7-
// Test that there is an active exception when we reach the terminate handler.
7+
// Test that noexcept_enforce behaves like enforce in the case that
8+
// nothing throws. A contract failure should still terminate in those
9+
// cases.
10+
811
void my_term()
912
{
1013
std::exit(0);

0 commit comments

Comments
 (0)