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: document where some C9...



details:   https://anonhg.NetBSD.org/src/rev/ea4c857643ac
branches:  trunk
changeset: 361140:ea4c857643ac
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 12 01:23:44 2022 +0000

description:
tests/lint: document where some C99 tests come from

These tests were added due to PR#45417.

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c  |  9 ++++++++-
 tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c |  9 ++++++++-
 tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c |  9 ++++++++-
 3 files changed, 24 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 5fe06d1dc041 -r ea4c857643ac tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c
--- a/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c        Sat Feb 12 01:21:11 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c        Sat Feb 12 01:23:44 2022 +0000
@@ -1,6 +1,13 @@
-/*     $NetBSD: d_c99_decls_after_stmt.c,v 1.3 2021/01/31 14:57:28 rillig Exp $        */
+/*     $NetBSD: d_c99_decls_after_stmt.c,v 1.4 2022/02/12 01:23:44 rillig Exp $        */
 # 3 "d_c99_decls_after_stmt.c"
 
+/*
+ * Before cgram.y 1.50 from 2011-10-04, lint complained about syntax errors
+ * at the second 'int'.
+ *
+ * https://gnats.netbsd.org/45417
+ */
+
 void
 sample(void)
 {
diff -r 5fe06d1dc041 -r ea4c857643ac tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c
--- a/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c       Sat Feb 12 01:21:11 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c       Sat Feb 12 01:23:44 2022 +0000
@@ -1,6 +1,13 @@
-/*     $NetBSD: d_c99_decls_after_stmt2.c,v 1.3 2021/01/31 14:57:28 rillig Exp $       */
+/*     $NetBSD: d_c99_decls_after_stmt2.c,v 1.4 2022/02/12 01:23:44 rillig Exp $       */
 # 3 "d_c99_decls_after_stmt2.c"
 
+/*
+ * Before cgram.y 1.50 from 2011-10-04, lint complained about syntax errors
+ * at the second 'int'.
+ *
+ * https://gnats.netbsd.org/45417
+ */
+
 typedef int int_t;
 
 int
diff -r 5fe06d1dc041 -r ea4c857643ac tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c
--- a/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c       Sat Feb 12 01:21:11 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c       Sat Feb 12 01:23:44 2022 +0000
@@ -1,6 +1,13 @@
-/*     $NetBSD: d_c99_decls_after_stmt3.c,v 1.3 2021/01/31 14:57:28 rillig Exp $       */
+/*     $NetBSD: d_c99_decls_after_stmt3.c,v 1.4 2022/02/12 01:23:44 rillig Exp $       */
 # 3 "d_c99_decls_after_stmt3.c"
 
+/*
+ * Before cgram.y 1.50 from 2011-10-04, lint complained about syntax errors
+ * at the second 'int'.
+ *
+ * https://gnats.netbsd.org/45417
+ */
+
 void
 sample(int i)
 {



Home | Main Index | Thread Index | Old Index