/* >>>------------------------------------------------------------ * * File: rule_4.1.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 4.1 (Required): * Only those escape sequences that are defined in the ISO C * standard shall be used. * * Implemented by messages: * 235 [U] Unknown escape sequence. * * 3610 Hexadecimal escape sequence used. * * <<<------------------------------------------------------------ */ /* PRQA S 3205 ++ */ #include "misra.h" #include "m2cmex.h" extern S16 test_0401( void ) { /* ISO-C Escape sequences */ PC esa = '\a'; PC esb = '\b'; PC esf = '\f'; PC esn = '\n'; PC esr = '\r'; PC est = '\t'; PC esv = '\v'; /* Numeric escape sequences */ PC esx = '\x0D'; PC es15 = '\15'; /* Non-conforming escape sequences */ PC esc = '\c'; /* MISRA Violation */ PC esd = '\d'; /* MISRA Violation */ PC ese = '\e'; /* MISRA Violation */ PC esg = '\g'; /* MISRA Violation */ PC esh = '\h'; /* MISRA Violation */ PC esi = '\i'; /* MISRA Violation */ PC esj = '\j'; /* MISRA Violation */ PC esk = '\k'; /* MISRA Violation */ PC esl = '\l'; /* MISRA Violation */ PC esm = '\m'; /* MISRA Violation */ PC eso = '\o'; /* MISRA Violation */ PC esp = '\p'; /* MISRA Violation */ PC esq = '\q'; /* MISRA Violation */ PC ess = '\s'; /* MISRA Violation */ PC esu = '\u'; /* MISRA Violation */ PC esw = '\w'; /* MISRA Violation */ PC esy = '\y'; /* MISRA Violation */ PC esz = '\z'; /* MISRA Violation */ return 0; }