File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
c/misra/test/rules/RULE-10-3 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,31 +131,31 @@ void testSwitchCase() {
131
131
case A : // NON_COMPLIANT
132
132
case 100 : // NON_COMPLIANT
133
133
case ((unsigned int )200 ): // NON_COMPLIANT
134
- // case 1.0f: // NON_COMPILABLE
134
+ break ; // case 1.0f: // NON_COMPILABLE
135
135
}
136
136
137
137
switch (e1 ) {
138
138
case true: // NON_COMPLIANT
139
139
case A : // COMPLIANT
140
140
case 100 : // NON_COMPLIANT
141
141
case ((unsigned int )200 ): // NON_COMPLIANT
142
- // case 1.0f: // NON_COMPILABLE
142
+ break ; // case 1.0f: // NON_COMPILABLE
143
143
}
144
144
145
145
switch (s ) {
146
146
case true: // NON_COMPLIANT
147
147
case A : // NON_COMPLIANT
148
148
case 100 : // COMPLIANT
149
149
case ((unsigned int )200 ): // NON_COMPLIANT
150
- // case 1.0f: // NON_COMPILABLE
150
+ break ; // case 1.0f: // NON_COMPILABLE
151
151
}
152
152
153
153
switch (u ) {
154
154
case true: // NON_COMPLIANT
155
155
case A : // NON_COMPLIANT
156
156
case 100 : // COMPLIANT - by exception 1
157
157
case ((unsigned int )200 ): // COMPLIANT - by exception 1
158
- // case 1.0f: // NON_COMPILABLE
158
+ break ; // case 1.0f: // NON_COMPILABLE
159
159
}
160
160
}
161
161
You can’t perform that action at this time.
0 commit comments