msg_024.c revision 1.5 1 /* $NetBSD: msg_024.c,v 1.5 2023/03/28 14:44:34 rillig Exp $ */
2 # 3 "msg_024.c"
3
4 // Test for message: cannot initialize function '%s' [24]
5
6 /* lint1-extra-flags: -X 351 */
7
8 typedef void (function)(void);
9
10 void
11 definition(void)
12 {
13 }
14
15 /* expect+3: error: cannot initialize function 'fn' [24] */
16 /* The following message is strange but does not occur in practice. */
17 /* expect+1: error: {}-enclosed initializer required [181] */
18 function fn = definition;
19