/* >>>------------------------------------------------------------ * * File: rule_16.9.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 16.9 (Required): * A function identifier shall only be used with either a * preceding &, or with a parenthesised parameter list, which may be * empty. * * Implemented by message: * 3635 Function identifier used as a pointer without a * preceding & operator. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" static S16 test_1609a( S16 x ); extern S16 test_1609( void ) { static S16 ( * const ap[ 10 ] )( S16 x ) = { 0 }; if ( test_1609a ) /* MISRA Violation */ { } if ( test_1609a != 0 ) /* MISRA Violation */ { } if ( test_1609a != ap[ 0 ] ) /* MISRA Violation */ { } return 1; } static S16 test_1609a( S16 x ) { return x; }