/* >>>------------------------------------------------------------ * * File: rule_14.10.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 14.10 (Required): * All if ... else if constructs shall be terminated with an else * clause. * * Implemented by message: * 2004 No concluding 'else' exists in this 'if'-'else'-'if' * statement. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" extern S16 test_1410( void ) { S16 r = 0; if ( s16a == 2 ) { r = 3; } else if ( s16a == 3 ) /* MISRA Violation */ { r = 2; } return r; }