File tree Expand file tree Collapse file tree
c/misra/test/rules/RULE-16-3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11| test.c:11:3:11:9 | case ...: | The switch $@ does not terminate with a break statement. | test.c:11:3:11:9 | case ...: | clause |
22| test.c:14:3:14:9 | case ...: | The switch $@ does not terminate with a break statement. | test.c:14:3:14:9 | case ...: | clause |
33| test.c:26:3:26:10 | default: | The switch $@ does not terminate with a break statement. | test.c:26:3:26:10 | default: | clause |
4+ | test.c:45:3:45:10 | default: | The switch $@ does not terminate with a break statement. | test.c:45:3:45:10 | default: | clause |
Original file line number Diff line number Diff line change @@ -39,3 +39,12 @@ void f2(int p1) {
3939 break ;
4040 }
4141}
42+
43+ void f3 (int p1 ) {
44+ switch (p1 ) {
45+ default : // NON_COMPLIANT
46+ p1 ++ ;
47+ case 1 : // COMPLIANT
48+ break ;
49+ }
50+ }
You can’t perform that action at this time.
0 commit comments