We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d1b3a commit c252aeeCopy full SHA for c252aee
gcc/testsuite/g++.dg/contracts/cpp26/noexcept-enforce3.C
@@ -4,7 +4,10 @@
4
#include <exception>
5
#include <cstdlib>
6
7
-// Test that there is an active exception when we reach the terminate handler.
+// 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
+
11
void my_term()
12
{
13
std::exit(0);
0 commit comments