/* >>>------------------------------------------------------------ * * File: rule_4.2.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 4.2 (Required): * Trigraphs shall not be used. * * Implemented by message: * 3601 Trigraphs (??x) are an ISO feature. * * <<<------------------------------------------------------------ */ /* PRQA S 2982,2983,3203 ++ */ #include "misra.h" #include "m2cmex.h" static const PC * test_0402a( const PC *ppc ); extern S16 test_0402( void ) { const PC * r; r = test_0402a( "??=" ); /* MISRA Violation */ r = test_0402a( "??(" ); /* MISRA Violation */ r = test_0402a( "??/a" ); /* MISRA Violation */ r = test_0402a( "??/??/a" ); /* MISRA Violation */ r = test_0402a( "??)" ); /* MISRA Violation */ r = test_0402a( "??'" ); /* MISRA Violation */ r = test_0402a( "??<" ); /* MISRA Violation */ r = test_0402a( "??!" ); /* MISRA Violation */ r = test_0402a( "??>" ); /* MISRA Violation */ r = test_0402a( "??-" ); /* MISRA Violation */ r = test_0402a( "Date should be in the form ??-??-??" ); /* MISRA Violation */ return 1; } static const PC * test_0402a( const PC *ppc ) { return ppc; }