Abraxas/Misra Home  Table of Contents

Module - m122.html

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

Misra-C Test Suite for Module - m122.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 122: Required */

Rule 122: Required */

/* The setjmp macro and the longjmp function shall not be used. */

The setjmp macro and the longjmp function shall not be used. */
#include 
#include "misra.h"
static void
func122 ( void ) 



Function Name: func122()

{
    
jmp_buf jbuf;
int val = 1;
    
    if ( setjmp ( jbuf ) == 0 ) /*  RULE 122  */
    {
        
        
    }
    else
    {
        
        
    }
    
    longjmp ( jbuf, val ) ; /*  RULE 122  */
    
}

Abraxas/Misra Home  Table of Contents

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