xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_176.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_176.c,v 1.6 2023/03/28 14:44:35 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 /* lint1-extra-flags: -X 351 */
8 
9 /*
10  * Before init.c 1.161 from 2021-03-28, lint wrongly complained about
11  * initializers with redundant braces.
12  *
13  * C99 allows these, both GCC and Clang warn about them since they are unusual
14  * and confusing.
15  */
16 
17 int valid = {{{3}}};
18