Abraxas/Misra Home  Table of Contents

Module - m55.html

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

Misra-C Test Suite for Module - m55.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 55: Advisory */

Rule 55: Advisory */

/* Labels should not be used, except in switch statements. */

Labels should not be used, except in switch statements. */
#include "misra.h"
SI_32
rule55 ( void ) 



Function Name: rule55()

{
    
SI_32 c = 3;
SI_32 i = 3;
    
    switch ( i ) 
    {
        
        case 1: 
        case 2: 
        case 3: 
        break;
        
        default: 
        goto blob; /*  RULE 56  */
        break;
        
    }
    
    blob: /*  RULE 55  */
    
    return c;
    
}

Abraxas/Misra Home  Table of Contents

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