/* >>>------------------------------------------------------------ * * File: rule_15.0.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 15.0 (Required): * The MISRA C switch syntax shall be used. * * Implemented by message: * 3234 Declarations precede the first label in this 'switch' * construct. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" extern S16 test_1500( void ) { switch ( s16a ) { static S16 s16x1500; /* MISRA Violation */ case 1: s16x1500 = s16a; break; case 2: s16b = s16x1500; break; default: break; } return 1; }