msg_246.c revision 1.6
1/*	$NetBSD: msg_246.c,v 1.6 2025/02/20 20:59:34 rillig Exp $	*/
2# 3 "msg_246.c"
3
4// Test for message: dubious conversion of enum to '%s' [246]
5// This message is not used.
6
7/* lint1-extra-flags: -X 351 */
8
9enum color {
10	RED, GREEN, BLUE
11};
12
13double
14to_double(enum color c)
15{
16	return c;
17}
18
19void *
20to_pointer(enum color c)
21{
22	/* expect+1: warning: illegal combination of pointer 'pointer to void' and integer 'enum color' for 'return' [183] */
23	return c;
24}
25