Module Name: src Committed By: rillig Date: Fri Apr 1 21:12:42 UTC 2022
Modified Files: src/tests/usr.bin/xlint/lint1: lex_char.c Log Message: tests/lint: fix comment about backslash-newline To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/lex_char.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/xlint/lint1/lex_char.c diff -u src/tests/usr.bin/xlint/lint1/lex_char.c:1.4 src/tests/usr.bin/xlint/lint1/lex_char.c:1.5 --- src/tests/usr.bin/xlint/lint1/lex_char.c:1.4 Tue Jun 29 07:28:01 2021 +++ src/tests/usr.bin/xlint/lint1/lex_char.c Fri Apr 1 21:12:42 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: lex_char.c,v 1.4 2021/06/29 07:28:01 rillig Exp $ */ +/* $NetBSD: lex_char.c,v 1.5 2022/04/01 21:12:42 rillig Exp $ */ # 3 "lex_char.c" /* @@ -60,8 +60,10 @@ test(void) } /* - * Even though backslash-newline is not supported by C99, lint accepts it - * in any mode, even for traditional C. + * The sequence backslash-newline is handled in an early stage of + * translation (C90 5.1.1.2 item 2, C99 5.1.1.2 item 2, C11 5.1.1.2 item 2), + * which allows it in character literals as well. This doesn't typically + * occur in practice though. */ char ch = '\ \