Skip to content

Commit 9b90a99

Browse files
NinaRannsiains
authored andcommitted
fixing typos
1 parent a10fabd commit 9b90a99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gcc/testsuite/g++.dg/contracts/cpp26/definition-checks/contract-assert-no-def-check.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// Check that contract asserts are checkef when the definition side contracts
1+
// Check that contract asserts are checked when the definition side contracts
22
// are turned off
33
// { dg-do run }
44
// { dg-options "-std=c++2a -fcontracts -fcontracts-nonattr -fcontracts-nonattr-definition-check=off -fcontract-evaluation-semantic=observe" }
55

66
#include <cstdlib>
77

8-
bool termintating_check(){
8+
bool terminating_check(){
99
std::exit(-1);
1010
return true;
1111
}
1212
// 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()) {
1414

1515
contract_assert(i > 4);
1616

0 commit comments

Comments
 (0)