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 work-in-progres...



details:   https://anonhg.NetBSD.org/src/rev/624b12408ccb
branches:  trunk
changeset: 378597:624b12408ccb
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Apr 18 08:03:56 2021 +0000

description:
tests/lint: remove work-in-progress code

The only purpose of the additional initializers was to generate an error
message, to make the .exp file non-empty.  This is no longer needed.

diffstat:

 tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c   |  4 +---
 tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp |  3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 846c30d68572 -r 624b12408ccb tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c
--- a/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c     Sun Apr 18 08:00:13 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c     Sun Apr 18 08:03:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gcc_init_compound_literal.c,v 1.3 2021/04/17 21:20:08 rillig Exp $     */
+/*     $NetBSD: gcc_init_compound_literal.c,v 1.4 2021/04/18 08:03:56 rillig Exp $     */
 # 3 "gcc_init_compound_literal.c"
 
 /*
@@ -22,8 +22,6 @@
 const struct {
     const unsigned char *ctxt;
 } T = {
-       (void *)0,
-       (void *)0,      /* expect: too many struct/union initializers */
        .ctxt = (const unsigned char[4]){
            1, 2, 3, 4
        },
diff -r 846c30d68572 -r 624b12408ccb tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp
--- a/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp   Sun Apr 18 08:00:13 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp   Sun Apr 18 08:03:56 2021 +0000
@@ -1,2 +1,1 @@
-gcc_init_compound_literal.c(26): error: too many struct/union initializers [172]
-gcc_init_compound_literal.c(43): warning: static variable guess unused [226]
+gcc_init_compound_literal.c(41): warning: static variable guess unused [226]



Home | Main Index | Thread Index | Old Index