blob: 07052adeb26ba4aebfa0f6d39223a5ef0ab6a0fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* $NetBSD: msg_229.c,v 1.7 2023/07/07 19:45:22 rillig Exp $ */
# 3 "msg_229.c"
// Test for message: converting '%s' to '%s' is questionable [229]
/* lint1-extra-flags: -X 351 */
typedef double (*unary_operator)(double);
int *
to_int_pointer(unary_operator op)
{
/* expect+1: warning: converting 'pointer to function(double) returning double' to 'pointer to int' is questionable [229] */
return (int *)op;
}
unary_operator
to_function_pointer(int *p)
{
/* expect+1: warning: converting 'pointer to int' to 'pointer to function(double) returning double' is questionable [229] */
return (unary_operator)p;
}
|