MISRA Discussion Forums

Full Version: Rule 4.1 Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I was just wondering if anybody has come across a possible discrepancy with the Exemplar Test suite 4.1. In the MISRA 2004 standard, Rule 4.1 states that "Only those escape sequences that are defined in the ISO C Standard shall be used". Section 5.2.2 of the ISO C standard lists valid escape sequences, but section 6.4.4.4 in the ISO C Standard also further defines escape clauses that are used.

The Rule 4.1 test case lists hexadecimal escape clauses as being non-compliant, but section 6.4.4.4 in the ISO C Standard indicates that hexadecimal clauses are valid.

I am just wondering if anybody has considered this is as a mistake in the test suite?

Thanks,
Jerry
Log in to this board, then from the main index -> MISRA C Resources -> MISRA-C:2004 Technical Corrigendum 1 -> download.

It contains a clarification of the escape sequence rules.