xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_172.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_172.c,v 1.5 2023/03/28 14:44:35 rillig Exp $	*/
2 # 3 "msg_172.c"
3 
4 // Test for message: too many struct/union initializers [172]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 struct color {
9 	unsigned int red: 8;
10 	unsigned int green: 8;
11 	unsigned int blue: 8;
12 };
13 
14 /* expect+1: error: too many struct/union initializers [172] */
15 struct color white = { 255, 255, 255, 255 };
16