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.
This commit is contained in:
rillig 2021-04-18 08:03:56 +00:00
parent 1cf5b1560c
commit fb2cd55871
2 changed files with 2 additions and 5 deletions

View File

@ -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
},

View File

@ -1,2 +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]