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 9877278 commit 5d4dcf6Copy full SHA for 5d4dcf6
gcc/testsuite/g++.dg/contracts/cpp26/throwing-violation-handler.cc
@@ -5,6 +5,10 @@ void handle_contract_violation(const std::contracts::contract_violation&)
5
throw 666;
6
}
7
8
+/* ODR hack to the hilt - f is actually noexcept, and has a contract.
9
+ We do this to avoid the call site knowing that, so that we verify
10
+ that the function terminates when it calls the throwing handler
11
+ that we use above. */
12
int f(int);
13
14
extern bool f_result;
0 commit comments