msg_016.c revision 1.7 1 /* $NetBSD: msg_016.c,v 1.7 2025/04/12 15:49:50 rillig Exp $ */
2 # 3 "msg_016.c"
3
4 // Test for message: array of function is invalid [16]
5
6 /* lint1-extra-flags: -X 351 */
7
8 typedef void function(void);
9
10 /* expect+1: error: array of function is invalid [16] */
11 function functions[] = {
12 /*
13 * XXX: The below warning should not assume that function is an
14 * integer type.
15 */
16 /* expect+1: warning: invalid combination of integer 'int' and pointer 'pointer to void' for 'init' [183] */
17 (void *)0,
18 };
19