Module Name:    src
Committed By:   rillig
Date:           Sun Jun 20 18:23:07 UTC 2021

Modified Files:
        src/tests/usr.bin/xlint/lint1: lex_char.c lex_char.exp

Log Message:
tests/lint: remove outdated comment about '\0'

That comment was only needed for lex.c 1.38 from 2021-06-18, which was
fixed with lex.c 1.39 from 2021-06-19, just a day later.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/lex_char.c \
    src/tests/usr.bin/xlint/lint1/lex_char.exp

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.1 src/tests/usr.bin/xlint/lint1/lex_char.c:1.2
--- src/tests/usr.bin/xlint/lint1/lex_char.c:1.1	Sat Jun 19 08:30:08 2021
+++ src/tests/usr.bin/xlint/lint1/lex_char.c	Sun Jun 20 18:23:07 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: lex_char.c,v 1.1 2021/06/19 08:30:08 rillig Exp $	*/
+/*	$NetBSD: lex_char.c,v 1.2 2021/06/20 18:23:07 rillig Exp $	*/
 # 3 "lex_char.c"
 
 /*
@@ -23,7 +23,6 @@ test(void)
 	/* expect+2: multi-character character constant */
 	/* expect+1: conversion of 'int' to 'char' is out of range */
 	sink('รค');
-	/* rescue the parser: ' */
 
 	/* GCC extension */
 	/* expect+1: dubious escape \e */
Index: src/tests/usr.bin/xlint/lint1/lex_char.exp
diff -u src/tests/usr.bin/xlint/lint1/lex_char.exp:1.1 src/tests/usr.bin/xlint/lint1/lex_char.exp:1.2
--- src/tests/usr.bin/xlint/lint1/lex_char.exp:1.1	Sat Jun 19 08:30:08 2021
+++ src/tests/usr.bin/xlint/lint1/lex_char.exp	Sun Jun 20 18:23:07 2021
@@ -1,5 +1,5 @@
 lex_char.c(16): error: empty character constant [73]
 lex_char.c(25): warning: multi-character character constant [294]
 lex_char.c(25): warning: conversion of 'int' to 'char' is out of range, arg #1 [295]
-lex_char.c(30): warning: dubious escape \e [79]
-lex_char.c(42): error: empty character constant [73]
+lex_char.c(29): warning: dubious escape \e [79]
+lex_char.c(41): error: empty character constant [73]

Reply via email to