xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_176.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_176.c,v 1.5 2021/08/26 19:23:25 rillig Exp $	*/
2 # 3 "msg_176.c"
3 
4 // Test for message: invalid initializer type %s [176]
5 /* This message is not used. */
6 
7 /*
8  * Before init.c 1.161 from 2021-03-28, lint wrongly complained about
9  * initializers with redundant braces.
10  *
11  * C99 allows these, both GCC and Clang warn about them since they are unusual
12  * and confusing.
13  */
14 
15 int valid = {{{3}}};
16