/* >>>------------------------------------------------------------ * * File: rule_18.1.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 18.1 (Required): * All structure and union types shall be complete at the end of a * translation unit. * * Implemented by messages: * 544 [U] The value of an incomplete 'union' may not be used. * * 545 [U] The value of an incomplete 'struct' may not be used. * * 623 [U] '%s' has incomplete type and no linkage - this is * undefined. * * 636 [U] There are no named members in this 'struct' or * 'union'. * * <<<------------------------------------------------------------ */ /* PRQA S 3205,3206,3210 ++ */ #include "misra.h" #include "m2cmex.h" extern S16 test_1801( void ) { struct stag { S16; S32; }; /* MISRA Violation */ struct Mike mike; /* MISRA Violation */ struct rup {S16 n; PC buf[];}; /* MISRA Violation */ return 1; }