/* >>>------------------------------------------------------------ * * File: rule_8.9.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 8.9 (Required): * An identifier with external linkage shall have exactly one * external definition. * * Implemented by messages: * 630 [U] More than one definition of '%s' (with external * linkage). * * 1509 '%1s' has external linkage and has multiple definitions. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" S16 obj_0809a = 3; S16 obj_0809a = 4; /* MISRA Violation */ S16 obj_0809b = 1; /* MISRA Violation - duplicate definition in main.c */ extern S16 test_0809(void) /* MISRA Violation - duplicate definition in main.c */ { return 1; }