xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_175.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_175.c,v 1.6 2023/03/28 14:44:35 rillig Exp $	*/
2 # 3 "msg_175.c"
3 
4 // Test for message: initialization of incomplete type '%s' [175]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /* expect+1: warning: struct 'incomplete' never defined [233] */
9 struct incomplete;
10 
11 /* expect+1: error: initialization of incomplete type 'incomplete struct incomplete' [175] */
12 struct incomplete incomplete = {
13 	"invalid"
14 };
15 /* expect-1: error: 'incomplete' has incomplete type 'incomplete struct incomplete' [31] */
16