xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_002.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_002.c,v 1.5 2021/07/14 20:39:13 rillig Exp $	*/
2 # 3 "msg_002.c"
3 
4 // Test for message: empty declaration [2]
5 
6 /* expect+1: warning: empty declaration [2] */
7 int;
8 
9 int local_variable;
10 
11 /* expect+1: warning: empty declaration [2] */
12 const;
13 
14 void
15 cover_cgram_declaration(void)
16 {
17 
18 	/* expect+1: warning: typedef declares no type name [72] */
19 	typedef const;
20 
21 	/* expect+1: warning: empty declaration [2] */
22 	const;
23 
24 	/* expect+1: warning: typedef declares no type name [72] */
25 	typedef int;
26 
27 	/* expect+1: warning: empty declaration [2] */
28 	int;
29 }
30