/* >>>------------------------------------------------------------ * * File: rule_19.16.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 19.16 (Required): * Preprocessing directives shall be syntactically meaningful even * when excluded by the preprocessor. * * Implemented by message: * 3115 Unrecognized preprocessing directive has been ignored * because of conditional inclusion directives. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" #define N 1 extern S16 test_1916( void ) { S16 x = 0; #ifndef N x = 0; #elseN /* MISRA Violation */ x = 2; #endif return x; }