Abraxas/Misra Home  Table of Contents

Module - m64.html

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

Misra-C Test Suite for Module - m64.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 64: Required */

Rule 64: Required */

/* Every switch statement shall have at least one case. */

Every switch statement shall have at least one case. */
#include "misra.h"
SI_32
rule64 ( void ) 



Function Name: rule64()

{
    
SI_32 c = 3;
SI_32 i = 3;
    
    switch ( i == 3 ) /*  RULE 64  */
    {
        
        default: break;
        
    }
    
    switch ( i ) 
    {
        
        case 4: c = 4; break;
        default: break;
        
    }
    
    return c;
    
}

Abraxas/Misra Home  Table of Contents

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