Abraxas/Misra Home  Table of Contents

Module - m85.html

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

Misra-C Test Suite for Module - m85.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 85: Advisory */

Rule 85: Advisory */

/* Functions called with no parameters should have empty parentheses. */

Functions called with no parameters should have empty parentheses. */
#include "misra.h"
static int func85a ( void ) 



Function Name: func85a()

{
    
    return 1;
    
}
int func85b ( void ) 



Function Name: func85b()

{
    
int a = 0;
    
    if ( func85a ) /*  RULE 85  */
    {
        
        a = 1;
        
    }
    
    if ( func85a (  ) ) 
    {
        
        a = 1;
        
    }
    
    return a;
    
}

Abraxas/Misra Home  Table of Contents

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