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() {
131131 case A : // NON_COMPLIANT
132132 case 100 : // NON_COMPLIANT
133133 case ((unsigned int )200 ): // NON_COMPLIANT
134- // case 1.0f: // NON_COMPILABLE
134+ break ; // case 1.0f: // NON_COMPILABLE
135135 }
136136
137137 switch (e1 ) {
138138 case true: // NON_COMPLIANT
139139 case A : // COMPLIANT
140140 case 100 : // NON_COMPLIANT
141141 case ((unsigned int )200 ): // NON_COMPLIANT
142- // case 1.0f: // NON_COMPILABLE
142+ break ; // case 1.0f: // NON_COMPILABLE
143143 }
144144
145145 switch (s ) {
146146 case true: // NON_COMPLIANT
147147 case A : // NON_COMPLIANT
148148 case 100 : // COMPLIANT
149149 case ((unsigned int )200 ): // NON_COMPLIANT
150- // case 1.0f: // NON_COMPILABLE
150+ break ; // case 1.0f: // NON_COMPILABLE
151151 }
152152
153153 switch (u ) {
154154 case true: // NON_COMPLIANT
155155 case A : // NON_COMPLIANT
156156 case 100 : // COMPLIANT - by exception 1
157157 case ((unsigned int )200 ): // COMPLIANT - by exception 1
158- // case 1.0f: // NON_COMPILABLE
158+ break ; // case 1.0f: // NON_COMPILABLE
159159 }
160160}
161161
You can’t perform that action at this time.
0 commit comments