File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
gcc/testsuite/g++.dg/contracts/cpp26/definition-checks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- // Check that contract asserts are checkef when the definition side contracts
1
+ // Check that contract asserts are checked when the definition side contracts
2
2
// are turned off
3
3
// { dg-do run }
4
4
// { dg-options "-std=c++2a -fcontracts -fcontracts-nonattr -fcontracts-nonattr-definition-check=off -fcontract-evaluation-semantic=observe" }
5
5
6
6
#include <cstdlib>
7
7
8
- bool termintating_check (){
8
+ bool terminating_check (){
9
9
std ::exit (-1 );
10
10
return true;
11
11
}
12
12
// pre and post check would cause termination
13
- void foo (int i ) noexcept pre (termintating_check ()) post (termintating_check ()) {
13
+ void foo (int i ) noexcept pre (terminating_check ()) post (terminating_check ()) {
14
14
15
15
contract_assert (i > 4 );
16
16
You can’t perform that action at this time.
0 commit comments