/* >>>------------------------------------------------------------ * * File: rule_8.10.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 8.10 (Required): * All declarations and definitions of objects or functions at * file scope shall have internal linkage unless external linkage is * required. * * Implemented by messages: * 1504 The object '%1s' is only referenced in the translation * unit where it is defined. * * 1505 The function '%1s' is only referenced in the translation * unit where it is defined. * * <<<------------------------------------------------------------ */ /* PRQA S 3408 ++ */ #include "misra.h" #include "m2cmex.h" S16 obj_0810a; S16 obj_0810b; static S16 test_0810b( void ); extern S16 test_0810( void ) { S16 r; r = test_0810a() + test_0810b(); return r; } extern S16 test_0810a( void ) { return obj_0810a; } static S16 test_0810b( void ) { return obj_0810b; }