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