Abraxas/Misra Home  Table of Contents

Module - m91.html

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

Misra-C Test Suite for Module - m91.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 91: Required */

Rule 91: Required */

/* Macros shall not be #defined'd and #undef'd in a block. */

Macros shall not be #defined'd and #undef'd in a block. */
#define SQR ( x ) (  ( x ) * ( x )  ) 
#undef SQR ( x ) 
#define PI ( 3.14159265f ) 
void
func91a ( void ) 



Function Name: func91a()

{
    
    #define HELLO SAILOR /*  RULE 91  */
    #undef SQR ( x ) /*  RULE 91  */
    #undef PI /*  RULE 91  */
    
}

Abraxas/Misra Home  Table of Contents

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