1 /* $NetBSD: msg_229.c,v 1.6 2022/06/16 21:24:41 rillig Exp $ */ 2 # 3 "msg_229.c" 3 4 // Test for message: converting '%s' to '%s' is questionable [229] 5 6 typedef double (*unary_operator)(double); 7 8 int * 9 to_int_pointer(unary_operator op) 10 { 11 /* expect+1: warning: converting 'pointer to function(double) returning double' to 'pointer to int' is questionable [229] */ 12 return (int *)op; 13 } 14 15 unary_operator 16 to_function_pointer(int *p) 17 { 18 /* expect+1: warning: converting 'pointer to int' to 'pointer to function(double) returning double' is questionable [229] */ 19 return (unary_operator)p; 20 } 21