Skip to content

Commit eeedf2d

Browse files
Use abort() instead of a non-zero return from main()
1 parent 5d4dcf6 commit eeedf2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ int main()
2929
g();
3030
} catch (...) {
3131
// We should not get here
32-
return 1;
32+
std::abort();
3333
}
3434
if (!f_result)
3535
// We should not get here
36-
return 1;
36+
std::abort();
3737
// We should not get here
38-
return 1;
38+
std::abort();
3939
}

0 commit comments

Comments
 (0)