/* >>>------------------------------------------------------------ * * File: rule_13.6.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 13.6 (Required): * Numeric variables being used within a for loop for iteration * counting shall not be modified in the body of the loop. * * Implemented by message: * 2469 Loop control variable in this 'for' statement, %s, is * modified in the body of the loop. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" extern S16 test_1306( void ) { S16 s16n; for ( s16n = 0; s16n < 10; s16n++ ) { s16n++; /* MISRA Violation */ } return 0; }