1 /* $NetBSD: msg_019.c,v 1.9 2024/01/28 08:54:27 rillig Exp $ */ 2 # 3 "msg_019.c" 3 4 // Test for message: void type for '%s' [19] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 /* expect+1: error: void type for 'global_variable' [19] */ 9 void global_variable; 10 11 /* expect+2: error: void type for 'unit_variable' [19] */ 12 /* expect+1: warning: static variable 'unit_variable' unused [226] */ 13 static void unit_variable; 14 15 /* expect+3: error: void parameter 'parameter' cannot have name [61] */ 16 /* expect+2: warning: parameter 'parameter' unused in function 'function' [231] */ 17 void 18 function(void parameter) 19 { 20 /* expect+1: error: void type for 'local_variable' [19] */ 21 void local_variable; 22 } 23