Abraxas/Misra Home  Table of Contents

Module - m47.html

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

Misra-C Test Suite for Module - m47.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 47: Required */

Rule 47: Required */

/* No dependence should be placed on C's operator precedence rules in */

No dependence should be placed on C's operator precedence rules in */

/* expressions. */

expressions. */
#include "misra.h"
SI_32
rule47 ( void ) 



Function Name: rule47()

{
    
SI_32 c = 3;
SI_32 i = 3;
SI_32 x = 3;
SI_32 y = 3;
SI_32 z = 3;
    
    z = 3 * x + y / i; /*  RULE 47  */
    
    z = (  ( 3 * x ) + ( y / i )  ) ; 
    
    return c;
    
}

Abraxas/Misra Home  Table of Contents

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