xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_019.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_019.c,v 1.6 2022/06/20 21:13:36 rillig Exp $	*/
2 # 3 "msg_019.c"
3 
4 // Test for message: void type for '%s' [19]
5 
6 /* expect+1: error: void type for 'global_variable' [19] */
7 void global_variable;
8 
9 /* expect+2: error: void type for 'unit_variable' [19] */
10 /* expect+1: warning: static variable 'unit_variable' unused [226] */
11 static void unit_variable;
12 
13 /* expect+3: warning: argument 'parameter' unused in function 'function' [231] */
14 /* expect+2: error: void parameter 'parameter' cannot have name [61] */
15 void
16 function(void parameter)
17 {
18 	/* expect+1: error: void type for 'local_variable' [19] */
19 	void local_variable;
20 }
21