Skip to content

Commit cb5f664

Browse files
Use __builtin_abort instead of std::abort
1 parent eeedf2d commit cb5f664

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-
std::abort();
32+
__builtin_abort();
3333
}
3434
if (!f_result)
3535
// We should not get here
36-
std::abort();
36+
__builtin_abort();
3737
// We should not get here
38-
std::abort();
38+
__builtin_abort();
3939
}

0 commit comments

Comments
 (0)