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/1ecf3765946f
branches:  trunk
changeset: 1020628:1ecf3765946f
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 1cdbbb02566c -r 1ecf3765946f 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 1cdbbb02566c -r 1ecf3765946f 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