Abraxas/Misra Home  Table of Contents

Module - m56.html

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

Misra-C Test Suite for Module - m56.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 56: Required */

Rule 56: Required */

/* The goto statement shall not be used. */

The goto statement shall not be used. */
#include "misra.h"
SI_32
rule56 ( void ) 



Function Name: rule56()

{
    
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.