1 /* $NetBSD: msg_016.c,v 1.4 2022/06/22 19:23:18 rillig Exp $ */ 2 # 3 "msg_016.c" 3 4 // Test for message: array of function is illegal [16] 5 6 typedef void function(void); 7 8 /* expect+1: error: array of function is illegal [16] */ 9 function functions[] = { 10 /* 11 * XXX: The below warning should not assume that function is an 12 * integer type. 13 */ 14 /* expect+1: warning: illegal combination of integer 'int' and pointer 'pointer to void' [183] */ 15 (void *)0, 16 }; 17