xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_176.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1*b2baa501Srillig /*	$NetBSD: msg_176.c,v 1.6 2023/03/28 14:44:35 rillig Exp $	*/
2a0a15c14Srillig # 3 "msg_176.c"
3a0a15c14Srillig 
4a0a15c14Srillig // Test for message: invalid initializer type %s [176]
5bc46a7bbSrillig /* This message is not used. */
6a0a15c14Srillig 
7*b2baa501Srillig /* lint1-extra-flags: -X 351 */
8*b2baa501Srillig 
9034864b5Srillig /*
105bbf966fSrillig  * Before init.c 1.161 from 2021-03-28, lint wrongly complained about
11034864b5Srillig  * initializers with redundant braces.
12034864b5Srillig  *
13034864b5Srillig  * C99 allows these, both GCC and Clang warn about them since they are unusual
14034864b5Srillig  * and confusing.
15034864b5Srillig  */
16034864b5Srillig 
17034864b5Srillig int valid = {{{3}}};
18