xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_031.c (revision 627f7eb200a4419d89b531d55fccd2ee3ffdcde0)
1 /*	$NetBSD: msg_031.c,v 1.4 2021/03/16 23:39:41 rillig Exp $	*/
2 # 3 "msg_031.c"
3 
4 // Test for message: incomplete structure or union %s: %s [31]
5 
6 struct complete {
7 	int dummy;
8 };
9 
10 struct incomplete;			/* expect: 233 */
11 
12 
13 struct complete complete_var;
14 
15 struct incomplete incomplete_var;	/* expect: 31 */
16 
17 /* XXX: the 'incomplete: <unnamed>' in the diagnostic looks strange */
18 void function(struct incomplete);	/* expect: incomplete: <unnamed> [31] */
19