/* >>>------------------------------------------------------------ * * File: rule_6.5.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 6.5 (Required): * Bit fields of signed type shall be at least 2 bits long. * * Implemented by messages: * 3659 Unnamed zero-width bit-field declared with a signed * type. * * 3660 Named bit-field consisting of a single bit declared with * a signed type. * * 3665 Unnamed bit-field consisting of a single bit declared * with a signed type. * * <<<------------------------------------------------------------ */ /* PRQA S 3205 ++ */ #include "misra.h" #include "m2cmex.h" extern S16 test_0605( void ) { struct bitest { signed int is_aaa: 1; /* MISRA Violation */ signed int : 1; /* MISRA Violation */ unsigned int : 1; signed int is_bbb: 3; signed int : 0; /* MISRA Violation */ signed int is_ccc: 3; unsigned int : 0; signed int is_ddd: 3; } obj_0605; return 0; }