blob: 2966e0228e6b097d4575c15fe7b2129085159adc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* $NetBSD: msg_016.c,v 1.5 2023/03/28 14:44:34 rillig Exp $ */
# 3 "msg_016.c"
// Test for message: array of function is illegal [16]
/* lint1-extra-flags: -X 351 */
typedef void function(void);
/* expect+1: error: array of function is illegal [16] */
function functions[] = {
/*
* XXX: The below warning should not assume that function is an
* integer type.
*/
/* expect+1: warning: illegal combination of integer 'int' and pointer 'pointer to void' [183] */
(void *)0,
};
|