Skip to content

Commit f9979fc

Browse files
The test function in noexcept default contract violation test should not be noexcept
1 parent 04bf921 commit f9979fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void my_term()
8383
catch(...) { std::exit(0); }
8484
}
8585

86-
void f(int x) noexcept pre(x >= 0)
86+
void f(int x) pre(x >= 0)
8787
{
8888
try{
8989
int i = 1;

0 commit comments

Comments
 (0)