1 /* $NetBSD: msg_246.c,v 1.4 2022/06/22 19:23:18 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 enum color { 8 RED, GREEN, BLUE 9 }; 10 11 double 12 to_double(enum color c) 13 { 14 return c; 15 } 16 17 void * 18 to_pointer(enum color c) 19 { 20 /* expect+1: warning: illegal combination of pointer 'pointer to void' and integer 'enum color' [183] */ 21 return c; 22 } 23