1 /* $NetBSD: msg_024.c,v 1.6 2023/07/21 06:02:07 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 or constant initializer of type 'function(void) returning void' required [181] */ 18 function fn = definition; 19