1 /* $NetBSD: msg_303.c,v 1.4 2023/03/28 14:44:35 rillig Exp $ */ 2 # 3 "msg_303.c" 3 4 /* Test for message: ANSI C forbids conversion of %s to %s [303] */ 5 6 /* lint1-flags: -sw -X 351 */ 7 8 void take_void_pointer(void *); 9 10 void * 11 to_void_pointer(void) 12 { 13 /* expect+1: warning: ANSI C forbids conversion of function pointer to 'void *' [303] */ 14 return to_void_pointer; 15 } 16 17 void (*to_function_pointer(void *arg))(void) 18 { 19 /* expect+1: warning: ANSI C forbids conversion of 'void *' to function pointer [303] */ 20 return arg; 21 } 22