/* >>>------------------------------------------------------------ * * File: rule_6.3.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 6.3 (Advisory): * Typedefs that indicate size and signedness should be used in * place of the basic numerical types. * * Implemented by message: * 5013 Use of basic type '%s'. * * <<<------------------------------------------------------------ */ /* PRQA S 2983,3203,3205,3206 ++ */ #include "misra.h" #include "m2cmex.h" typedef unsigned char UCHAR; extern S16 test_0603( void ) { S32 a = 1; int b; /* MISRA Violation */ S8 c; signed char d; /* MISRA Violation */ UCHAR f; float g; /* MISRA Violation */ unsigned h; /* MISRA Violation */ signed i; /* MISRA Violation */ struct bit_field { signed int bit2 : 7; unsigned int bit3 : 2; }; g = ( float )a; /* MISRA Violation */ return 0; }