Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: remove outdated commen...



details:   https://anonhg.NetBSD.org/src/rev/ef2e44f7fc1a
branches:  trunk
changeset: 379807:ef2e44f7fc1a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jun 20 18:23:07 2021 +0000

description:
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.

diffstat:

 tests/usr.bin/xlint/lint1/lex_char.c   |  3 +--
 tests/usr.bin/xlint/lint1/lex_char.exp |  4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r cd8178448e52 -r ef2e44f7fc1a tests/usr.bin/xlint/lint1/lex_char.c
--- a/tests/usr.bin/xlint/lint1/lex_char.c      Sun Jun 20 18:15:12 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/lex_char.c      Sun Jun 20 18:23:07 2021 +0000
@@ -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 */
diff -r cd8178448e52 -r ef2e44f7fc1a tests/usr.bin/xlint/lint1/lex_char.exp
--- a/tests/usr.bin/xlint/lint1/lex_char.exp    Sun Jun 20 18:15:12 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/lex_char.exp    Sun Jun 20 18:23:07 2021 +0000
@@ -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]



Home | Main Index | Thread Index | Old Index