1 // check that contracts can be handled even when exceptions are disabled
3 // { dg-options "-std=c++2a -fcontracts -fno-exceptions " }
4 // { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
5 // { dg-output "contract violation in function f at .* a<5" }
10 int terminate_called = 0;
25 std::set_terminate (my_term);