File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
testsuite/g++.dg/contracts/cpp26/definition-checks Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1964,9 +1964,9 @@ fcontracts-nonattr-client-contracts=
1964
1964
C++ Joined RejectNegative Enum(client_contract_check) Var(flag_contract_nonattr_client_check) Init (0)
1965
1965
-fcontracts-nonattr-client-check=[none|pre|all] Select which contracts will be checked on the client side for non virtual functions
1966
1966
1967
- fcontracts-nonattr-def-contracts =
1968
- C++ Var(flag_contracts_nonattr_def_contracts) Enum(on_off) Joined Init(1) RejectNegative
1969
- -fcontracts-nonattr-def-contract =[on|off] Enable or disable contract checks on the definition side for all functions (default on).
1967
+ fcontracts-nonattr-definition-check =
1968
+ C++ Joined RejectNegative Enum(on_off) Var(flag_contracts_nonattr_definition_check) Init(1)
1969
+ -fcontracts-nonattr-definition-check =[on|off] Enable or disable contract checks on the definition side for all functions (default on).
1970
1970
1971
1971
fcoroutines
1972
1972
C++ LTO Var(flag_coroutines)
Original file line number Diff line number Diff line change @@ -2774,7 +2774,7 @@ start_function_contracts (tree decl1)
2774
2774
2775
2775
/* If this is not a client side check and definition side checks are
2776
2776
disabled, do nothing. */
2777
- if (!flag_contracts_nonattr_def_contracts &&
2777
+ if (!flag_contracts_nonattr_definition_check &&
2778
2778
!DECL_CONTRACT_WRAPPER (decl1))
2779
2779
return ;
2780
2780
@@ -2895,7 +2895,7 @@ maybe_apply_function_contracts (tree fndecl)
2895
2895
2896
2896
/* If this is not a client side check and definition side checks are
2897
2897
disabled, do nothing. */
2898
- if (!flag_contracts_nonattr_def_contracts &&
2898
+ if (!flag_contracts_nonattr_definition_check &&
2899
2899
!DECL_CONTRACT_WRAPPER (fndecl))
2900
2900
return ;
2901
2901
@@ -3034,7 +3034,7 @@ finish_function_contracts (tree fndecl)
3034
3034
3035
3035
/* If this is not a client side check and definition side checks are
3036
3036
disabled, do nothing. */
3037
- if (!flag_contracts_nonattr_def_contracts &&
3037
+ if (!flag_contracts_nonattr_definition_check &&
3038
3038
!DECL_CONTRACT_WRAPPER (fndecl))
3039
3039
return ;
3040
3040
Original file line number Diff line number Diff line change 1
1
// check that an invocation of a virtual function through the base class does not
2
2
// check contracts of the derived function, which are definition side contracts
3
3
// { dg-do run }
4
- // { dg-options "-std=c++2a -fcontracts -fcontracts-nonattr -fcontracts-nonattr-def-contracts =off " }
4
+ // { dg-options "-std=c++2a -fcontracts -fcontracts-nonattr -fcontracts-nonattr-definition-check =off " }
5
5
6
6
struct Base
7
7
{
Original file line number Diff line number Diff line change 1
1
// check that an invocation of a virtual function through the base class checks
2
2
// the base class contracts when definition side contracts are turned off
3
3
// { dg-do run }
4
- // { dg-options "-std=c++2a -fcontracts -fcontracts-nonattr -fcontracts-nonattr-def-contracts =off -fcontract-continuation-mode=on" }
4
+ // { dg-options "-std=c++2a -fcontracts -fcontracts-nonattr -fcontracts-nonattr-definition-check =off -fcontract-continuation-mode=on" }
5
5
6
6
struct Base
7
7
{
You can’t perform that action at this time.
0 commit comments