xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_016.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_016.c,v 1.5 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "msg_016.c"
3 
4 // Test for message: array of function is illegal [16]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 typedef void function(void);
9 
10 /* expect+1: error: array of function is illegal [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: illegal combination of integer 'int' and pointer 'pointer to void' [183] */
17 	(void *)0,
18 };
19