/* >>>------------------------------------------------------------ * * File: rule_20.7.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 20.7 (Required): * The setjmp macro and the longjmp function shall not be used. * * Implemented by message: * 5122 The setjmp macro and the longjmp function shall not be * used. * * <<<------------------------------------------------------------ */ #include #include "misra.h" #include "m2cmex.h" extern S16 test_2007( void ) { S16 istat; jmp_buf myenv; istat = setjmp( myenv ); /* MISRA Violation */ longjmp( myenv, 9 ); /* MISRA Violation */ return istat; }