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 comments



details:   https://anonhg.NetBSD.org/src/rev/2b3374ef1b80
branches:  trunk
changeset: 982080:2b3374ef1b80
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Mar 30 15:05:05 2021 +0000

description:
tests/lint: remove outdated comments

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_init.c   |  10 +++-------
 tests/usr.bin/xlint/lint1/d_c99_init.exp |  26 +++++++++++++-------------
 tests/usr.bin/xlint/lint1/msg_247.c      |   4 ++--
 3 files changed, 18 insertions(+), 22 deletions(-)

diffs (95 lines):

diff -r f5e24d2eb46d -r 2b3374ef1b80 tests/usr.bin/xlint/lint1/d_c99_init.c
--- a/tests/usr.bin/xlint/lint1/d_c99_init.c    Tue Mar 30 14:58:17 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_init.c    Tue Mar 30 15:05:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_c99_init.c,v 1.24 2021/03/30 14:25:28 rillig Exp $   */
+/*     $NetBSD: d_c99_init.c,v 1.25 2021/03/30 15:05:05 rillig Exp $   */
 # 3 "d_c99_init.c"
 
 /*
@@ -260,9 +260,8 @@
 struct ten ten = {
        .i3 = 3,
        4,
-       // FIXME: assertion "level->bl_type->t_tspec == ARRAY" failed in brace_level_extend_if_array_of_unknown_size
-       // 5,
-       // 6,
+       5,
+       6,
 };
 
 int c99_6_7_8_p26_example3[4][3] = {
@@ -330,7 +329,6 @@
 }
 
 struct point unknown_member_name_beginning = {
-       /* TODO: remove me */
        .r = 5,                 /* expect: undefined struct/union member: r */
        .x = 4,
        .y = 3,
@@ -354,14 +352,12 @@
 };
 
 union value unknown_union_member_name_first = {
-       /* TODO: remove me */
        .unknown_value = 4,     /* expect: undefined struct/union member */
        .int_value = 3,
 };
 
 union value unknown_union_member_name_second = {
        .int_value = 3,
-       /* TODO: remove me */
        .unknown_value = 4,     /* expect: undefined struct/union member */
 };
 
diff -r f5e24d2eb46d -r 2b3374ef1b80 tests/usr.bin/xlint/lint1/d_c99_init.exp
--- a/tests/usr.bin/xlint/lint1/d_c99_init.exp  Tue Mar 30 14:58:17 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_init.exp  Tue Mar 30 15:05:05 2021 +0000
@@ -6,16 +6,16 @@
 d_c99_init.c(232): error: too many struct/union initializers [172]
 d_c99_init.c(238): warning: illegal combination of integer (char) and pointer (pointer to char) [183]
 d_c99_init.c(242): warning: illegal combination of integer (char) and pointer (pointer to char) [183]
-d_c99_init.c(282): error: cannot initialize 'struct <unnamed>' from 'int' [185]
-d_c99_init.c(324): error: duplicate case in switch: 0 [199]
-d_c99_init.c(334): error: undefined struct/union member: r [101]
-d_c99_init.c(341): error: undefined struct/union member: r [101]
-d_c99_init.c(348): error: undefined struct/union member: r [101]
-d_c99_init.c(358): error: undefined struct/union member: unknown_value [101]
-d_c99_init.c(365): error: undefined struct/union member: unknown_value [101]
-d_c99_init.c(369): error: syntax error 'designator '[...]' is only for arrays' [249]
-d_c99_init.c(370): error: undefined struct/union member: member [101]
-d_c99_init.c(376): warning: structure has no named members [65]
-d_c99_init.c(377): error: too many struct/union initializers [172]
-d_c99_init.c(382): warning: union has no named members [65]
-d_c99_init.c(383): error: too many struct/union initializers [172]
+d_c99_init.c(281): error: cannot initialize 'struct <unnamed>' from 'int' [185]
+d_c99_init.c(323): error: duplicate case in switch: 0 [199]
+d_c99_init.c(332): error: undefined struct/union member: r [101]
+d_c99_init.c(339): error: undefined struct/union member: r [101]
+d_c99_init.c(346): error: undefined struct/union member: r [101]
+d_c99_init.c(355): error: undefined struct/union member: unknown_value [101]
+d_c99_init.c(361): error: undefined struct/union member: unknown_value [101]
+d_c99_init.c(365): error: syntax error 'designator '[...]' is only for arrays' [249]
+d_c99_init.c(366): error: undefined struct/union member: member [101]
+d_c99_init.c(372): warning: structure has no named members [65]
+d_c99_init.c(373): error: too many struct/union initializers [172]
+d_c99_init.c(378): warning: union has no named members [65]
+d_c99_init.c(379): error: too many struct/union initializers [172]
diff -r f5e24d2eb46d -r 2b3374ef1b80 tests/usr.bin/xlint/lint1/msg_247.c
--- a/tests/usr.bin/xlint/lint1/msg_247.c       Tue Mar 30 14:58:17 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_247.c       Tue Mar 30 15:05:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_247.c,v 1.7 2021/03/26 16:59:19 rillig Exp $       */
+/*     $NetBSD: msg_247.c,v 1.8 2021/03/30 15:05:05 rillig Exp $       */
 # 3 "msg_247.c"
 
 // Test for message: pointer cast from '%s' to '%s' may be troublesome [247]
@@ -40,7 +40,7 @@
  * Casting to 'pointer to char' may also be used by programmers who don't know
  * about endianness, but that's not something lint can do anything about.  The
  * code for these two use cases looks exactly the same, so lint errs on the
- * side of fewer false positive warnings here. (after fixing the FIXME below)
+ * side of fewer false positive warnings here.
  */
 char *
 cast_to_char_pointer(struct Other *arg)



Home | Main Index | Thread Index | Old Index