tests/lint: remove outdated comments

This commit is contained in:
rillig 2021-03-30 15:05:05 +00:00
parent 58c739af66
commit 72bdbc4596
3 changed files with 18 additions and 22 deletions

View File

@ -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 {
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 @@ ensure_array_type_is_not_modified_during_initialization(void)
}
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 {
};
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 */
};

View File

@ -6,16 +6,16 @@ d_c99_init.c(145): error: syntax error 'named member must only be used with stru
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]

View File

@ -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 @@ example(struct Other *arg)
* 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)