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 cb5f664 commit 113e9f6Copy full SHA for 113e9f6
gcc/testsuite/g++.dg/contracts/cpp26/contract-violation-noexcept2.C
@@ -4,7 +4,6 @@
4
// { dg-additional-sources "throwing-violation-handler.cc" }
5
6
#include <exception>
7
-#include <cstdlib>
8
9
void f(int x) noexcept pre(x >= 0)
10
{
@@ -17,7 +16,7 @@ bool f_result = true;
17
16
void my_term()
18
19
try { throw; }
20
- catch(int) { std::exit(0); }
+ catch(int) { __builtin_exit(0); }
21
}
22
23
0 commit comments