msg_246.c revision 1.3
1/* $NetBSD: msg_246.c,v 1.3 2022/06/16 21:24:41 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 7enum color { 8 RED, GREEN, BLUE 9}; 10 11double 12to_double(enum color c) 13{ 14 return c; 15} 16 17void * 18to_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