File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
cpp/autosar/test/rules/M0-1-2 Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 88| test.cpp:86:9:86:14 | ... < ... | The true path is infeasible because 0 (max value: 0) is always less than or equal to a (minimum value: 0). |
99| test.cpp:117:7:117:7 | 0 | The path is unreachable in a template. |
1010| test.cpp:123:7:123:8 | ! ... | The path is unreachable in a template. |
11+ | test.cpp:137:7:137:12 | ... > ... | The path is unreachable in a template. |
Original file line number Diff line number Diff line change @@ -131,4 +131,15 @@ void test_infeasible_instantiates() {
131131 template_infeasible_true_path<B>();
132132 template_infeasible_false_path<A>();
133133 template_infeasible_false_path<B>();
134+ }
135+
136+ template <unsigned int i> int template_infeasible_relation () {
137+ if (i > -1 ) { // NON_COMPLIANT - true path is infeasible in all circumstances
138+ return 3 ;
139+ }
140+ }
141+
142+ void test_infeasible_relation () {
143+ template_infeasible_relation<0 >();
144+ template_infeasible_relation<1 >();
134145}
You can’t perform that action at this time.
0 commit comments