Abraxas/Misra Home  Table of Contents

Module - m94.html

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

Misra-C Test Suite for Module - m94.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 94: Required */

Rule 94: Required */

/* A function-like macro shall not be 'called' without all its */

A function-like macro shall not be 'called' without all its */

/* arguments. */

arguments. */
#define DIV ( x,y ) ((x)/(y))
void
func94a ( void ) 



Function Name: func94a()

{
    
int i = DIV ( 1,3 ) ; 
    
int j = DIV ( 1 ) / 3; /*  RULE 94  */
    
}

Abraxas/Misra Home  Table of Contents

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