/* >>>------------------------------------------------------------ * * File: rule_5.4.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 5.4 (Required): * A tag name shall be a unique identifier. * * Implemented by message: * 547 [C] This declaration of tag '%s' conflicts with a * previous declaration. * * <<<------------------------------------------------------------ */ /* PRQA S 3205 ++ */ #include "misra.h" #include "m2cmex.h" extern S16 test_0504( void ) { struct mytaga { S32 i; S32 j; S32 k; }; union mytaga /* MISRA Violation */ { /* MISRA Violation - Rule 18.4 */ S32 x; S16 buf[2]; } un1; /* MISRA Violation - Rule 18.4 */ struct mytagb { S32 i; S32 j; S32 k; }; enum mytagb { red, amber, green }; /* MISRA Violation */ return 0; }