/* >>>------------------------------------------------------------ * * File: rule_8.12.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 8.12 (Required): * When an array is declared with external linkage, its size shall * be stated explicitly or defined implicitly by initialisation. * * Implemented by message: * 3684 Array declared with unknown size. * * <<<------------------------------------------------------------ */ /* PRQA S 3205,3210,3408,3447 ++ */ #include "misra.h" #include "m2cmex.h" S16 arr1[12]; S16 arr2[ ] = { 1, 2, 3 }; extern S16 arr3[12]; extern S16 arr4[ ]; /* MISRA Violation */ extern S16 test_0812( void ) { return 0; }