/* >>>------------------------------------------------------------ * * File: rule_11.2.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 11.2 (Required): * Conversions shall not be performed between a pointer to object * and any type other than an integral type, another pointer to * object type or a pointer to void. * * Implemented by message: * 301 [u] Cast between a pointer to object and a floating * type. * * <<<------------------------------------------------------------ */ /* PRQA S 2982,3203 ++ */ #include "misra.h" #include "m2cmex.h" extern S16 test_1102( void ) { F32 * pf32 = 0; void * pv = 0; f32a = ( F32 )pf32; /* MISRA Violation */ f64a = ( F64 )pf32; /* MISRA Violation */ f32a = ( F32 )pv; /* MISRA Violation */ f64a = ( F64 )pv; /* MISRA Violation */ return 0; }