xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_188.c (revision 627f7eb200a4419d89b531d55fccd2ee3ffdcde0)
1 /*	$NetBSD: msg_188.c,v 1.3 2021/03/28 15:12:20 rillig Exp $	*/
2 # 3 "msg_188.c"
3 
4 /* Test for message: no automatic aggregate initialization in traditional C [188] */
5 
6 /* lint1-flags: -tw */
7 
8 struct point {
9 	int x;
10 	int y;
11 };
12 
13 struct point global = {
14 	3,
15 	4,
16 };
17 
18 void
19 function()
20 {
21 	struct point local = {	/* expect: 188 */
22 		3,
23 		4,
24 	};
25 }
26