summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_176.c
blob: 51d20199ca2e9aa6dd03c1d53d98955a2e234469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$NetBSD: msg_176.c,v 1.6 2023/03/28 14:44:35 rillig Exp $	*/
# 3 "msg_176.c"

// Test for message: invalid initializer type %s [176]
/* This message is not used. */

/* lint1-extra-flags: -X 351 */

/*
 * Before init.c 1.161 from 2021-03-28, lint wrongly complained about
 * initializers with redundant braces.
 *
 * C99 allows these, both GCC and Clang warn about them since they are unusual
 * and confusing.
 */

int valid = {{{3}}};