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 unnecessary emp...



details:   https://anonhg.NetBSD.org/src/rev/8192a1164477
branches:  trunk
changeset: 954168:8192a1164477
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Mar 30 16:09:30 2021 +0000

description:
tests/lint: remove unnecessary empty lines from test

In a separate commit to not cause an unnecessarily large diff in the
previous commit.

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_init.c   |   4 +--
 tests/usr.bin/xlint/lint1/d_c99_init.exp |  42 ++++++++++++++++----------------
 2 files changed, 22 insertions(+), 24 deletions(-)

diffs (74 lines):

diff -r 7f659c1cd1d8 -r 8192a1164477 tests/usr.bin/xlint/lint1/d_c99_init.c
--- a/tests/usr.bin/xlint/lint1/d_c99_init.c    Tue Mar 30 16:07:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_init.c    Tue Mar 30 16:09:30 2021 +0000
@@ -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"
 
 /*
@@ -135,7 +135,6 @@
 struct point point_with_mixed_designators = {
        .x = 3,
        4,
-
        5,                      /* expect: too many struct/union initializers */
        .x = 3,
 };
@@ -211,7 +210,6 @@
  * structs.
  */
 struct geometry geometry = {
-
        .pentagons[0].points[4].x = 1,
        .points[0][0][0] = { 0, 0 },
        .points[2][4][1] = {301, 302 },
diff -r 7f659c1cd1d8 -r 8192a1164477 tests/usr.bin/xlint/lint1/d_c99_init.exp
--- a/tests/usr.bin/xlint/lint1/d_c99_init.exp  Tue Mar 30 16:07:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_init.exp  Tue Mar 30 16:09:30 2021 +0000
@@ -1,24 +1,24 @@
 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(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(145): 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(221): 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(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(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: 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(346): 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(361): 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(366): 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(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]
+d_c99_init.c(138): error: too many struct/union initializers [172]
+d_c99_init.c(144): error: syntax error 'designator '.member' is only for struct/union' [249]
+d_c99_init.c(217): error: array subscript cannot be > 2: 3 [168]
+d_c99_init.c(219): error: array subscript cannot be > 4: 5 [168]
+d_c99_init.c(221): error: array subscript cannot be > 1: 2 [168]
+d_c99_init.c(230): error: too many struct/union initializers [172]
+d_c99_init.c(236): 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(279): error: cannot initialize 'struct <unnamed>' from 'int' [185]
+d_c99_init.c(321): error: duplicate case in switch: 0 [199]
+d_c99_init.c(330): 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(344): error: type 'struct point' does not have member 'r' [101]
+d_c99_init.c(353): 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(363): error: syntax error 'designator '[...]' is only for arrays' [249]
+d_c99_init.c(364): error: type 'struct point' does not have member 'member' [101]
+d_c99_init.c(370): warning: structure has no named members [65]
+d_c99_init.c(371): error: too many struct/union initializers [172]
+d_c99_init.c(376): warning: union has no named members [65]
+d_c99_init.c(377): error: too many struct/union initializers [172]



Home | Main Index | Thread Index | Old Index