msg_303.c revision 1.3
1/* $NetBSD: msg_303.c,v 1.3 2021/08/16 18:51:58 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 */ 7 8void take_void_pointer(void *); 9 10void * 11to_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 17void (*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