tests/lint: remove unnecessary empty lines from test
In a separate commit to not cause an unnecessarily large diff in the previous commit.
This commit is contained in:
parent
ea90fdfcdd
commit
bdfe161d90
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: d_c99_init.c,v 1.27 2021/03/30 16:07:07 rillig Exp $ */
|
/* $NetBSD: d_c99_init.c,v 1.28 2021/03/30 16:09:30 rillig Exp $ */
|
||||||
# 3 "d_c99_init.c"
|
# 3 "d_c99_init.c"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -135,7 +135,6 @@ struct point point_with_designators = {
|
||||||
struct point point_with_mixed_designators = {
|
struct point point_with_mixed_designators = {
|
||||||
.x = 3,
|
.x = 3,
|
||||||
4,
|
4,
|
||||||
|
|
||||||
5, /* expect: too many struct/union initializers */
|
5, /* expect: too many struct/union initializers */
|
||||||
.x = 3,
|
.x = 3,
|
||||||
};
|
};
|
||||||
|
@ -211,7 +210,6 @@ struct geometry {
|
||||||
* structs.
|
* structs.
|
||||||
*/
|
*/
|
||||||
struct geometry geometry = {
|
struct geometry geometry = {
|
||||||
|
|
||||||
.pentagons[0].points[4].x = 1,
|
.pentagons[0].points[4].x = 1,
|
||||||
.points[0][0][0] = { 0, 0 },
|
.points[0][0][0] = { 0, 0 },
|
||||||
.points[2][4][1] = {301, 302 },
|
.points[2][4][1] = {301, 302 },
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
d_c99_init.c(23): error: too many initializers [174]
|
d_c99_init.c(23): error: too many initializers [174]
|
||||||
d_c99_init.c(63): error: cannot initialize 'pointer to const void' from 'struct any' [185]
|
d_c99_init.c(63): error: cannot initialize 'pointer to const void' from 'struct any' [185]
|
||||||
d_c99_init.c(80): error: too many array initializers, expected 3 [173]
|
d_c99_init.c(80): error: too many array initializers, expected 3 [173]
|
||||||
d_c99_init.c(139): error: too many struct/union initializers [172]
|
d_c99_init.c(138): error: too many struct/union initializers [172]
|
||||||
d_c99_init.c(145): error: syntax error 'designator '.member' is only for struct/union' [249]
|
d_c99_init.c(144): error: syntax error 'designator '.member' is only for struct/union' [249]
|
||||||
d_c99_init.c(219): error: array subscript cannot be > 2: 3 [168]
|
d_c99_init.c(217): error: array subscript cannot be > 2: 3 [168]
|
||||||
d_c99_init.c(221): error: array subscript cannot be > 4: 5 [168]
|
d_c99_init.c(219): error: array subscript cannot be > 4: 5 [168]
|
||||||
d_c99_init.c(223): error: array subscript cannot be > 1: 2 [168]
|
d_c99_init.c(221): error: array subscript cannot be > 1: 2 [168]
|
||||||
d_c99_init.c(232): error: too many struct/union initializers [172]
|
d_c99_init.c(230): 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(236): 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(240): warning: illegal combination of integer (char) and pointer (pointer to char) [183]
|
||||||
d_c99_init.c(281): error: cannot initialize 'struct <unnamed>' from 'int' [185]
|
d_c99_init.c(279): error: cannot initialize 'struct <unnamed>' from 'int' [185]
|
||||||
d_c99_init.c(323): error: duplicate case in switch: 0 [199]
|
d_c99_init.c(321): error: duplicate case in switch: 0 [199]
|
||||||
d_c99_init.c(332): error: type 'struct point' does not have member 'r' [101]
|
d_c99_init.c(330): error: type 'struct point' does not have member 'r' [101]
|
||||||
d_c99_init.c(339): error: type 'struct point' does not have member 'r' [101]
|
d_c99_init.c(337): error: type 'struct point' does not have member 'r' [101]
|
||||||
d_c99_init.c(346): error: type 'struct point' does not have member 'r' [101]
|
d_c99_init.c(344): error: type 'struct point' does not have member 'r' [101]
|
||||||
d_c99_init.c(355): error: type 'union value' does not have member 'unknown_value' [101]
|
d_c99_init.c(353): error: type 'union value' does not have member 'unknown_value' [101]
|
||||||
d_c99_init.c(361): error: type 'union value' does not have member 'unknown_value' [101]
|
d_c99_init.c(359): error: type 'union value' does not have member 'unknown_value' [101]
|
||||||
d_c99_init.c(365): error: syntax error 'designator '[...]' is only for arrays' [249]
|
d_c99_init.c(363): error: syntax error 'designator '[...]' is only for arrays' [249]
|
||||||
d_c99_init.c(366): error: type 'struct point' does not have member 'member' [101]
|
d_c99_init.c(364): error: type 'struct point' does not have member 'member' [101]
|
||||||
d_c99_init.c(372): warning: structure has no named members [65]
|
d_c99_init.c(370): warning: structure has no named members [65]
|
||||||
d_c99_init.c(373): error: too many struct/union initializers [172]
|
d_c99_init.c(371): error: too many struct/union initializers [172]
|
||||||
d_c99_init.c(378): warning: union has no named members [65]
|
d_c99_init.c(376): warning: union has no named members [65]
|
||||||
d_c99_init.c(379): error: too many struct/union initializers [172]
|
d_c99_init.c(377): error: too many struct/union initializers [172]
|
||||||
|
|
Loading…
Reference in New Issue