Abraxas/Misra Home  Table of Contents

Module - m48.html

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

Misra-C Test Suite for Module - m48.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 48: Advisory */

Rule 48: Advisory */

/* Mixed precision arithmetic should use explicit casting to generate */

Mixed precision arithmetic should use explicit casting to generate */

/* the desired result. */

the desired result. */

/* Not automatically detectable statically in all cases. The */

Not automatically detectable statically in all cases. The */

/* following should give an indication. */

following should give an indication. */
#include "misra.h"
SI_32
rule48 ( void ) 



Function Name: rule48()

{
    
SI_32 c = 3;
    
UI_32 i = 1u;
UI_32 j = 3u;
    
FL_64 d0 = i / j; /*  RULE 48  */
    
    return c;
    
}

Abraxas/Misra Home  Table of Contents

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