Abraxas/Misra Home  Table of Contents

Module - m65.html

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.

Misra-C Test Suite for Module - m65.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 65: Required */

Rule 65: Required */

/* Floating point variables shall not be used as loop counters. */

Floating point variables shall not be used as loop counters. */
#include "misra.h"
SI_32
rule65 ( void ) 



Function Name: rule65()

{
    
SI_32 c = 3;
    
FL_32 f;
    
    for ( f = 0.1f; f < 3.8f; ++f ) /*  RULE 65  */
    {
        

/* DO NOTHING */

DO NOTHING */
        
    }
    
    return c;
    
}

Abraxas/Misra Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.