1/* $NetBSD: msg_279.c,v 1.5 2023/03/28 14:44:35 rillig Exp $ */ 2# 3 "msg_279.c" 3 4// Test for message: combination of '%s' and '%s' in return [279] 5 6/* lint1-extra-flags: -e -X 351 */ 7 8enum E { 9 E1 10}; 11 12void sink_enum(enum E); 13void sink_int(int); 14 15enum E 16returning_enum(int i) 17{ 18 /* expect+1: warning: combination of 'enum E' and 'int' in return [279] */ 19 return i; 20} 21 22int 23returning_int(enum E e) 24{ 25 /* expect+1: warning: combination of 'int' and 'enum E' in return [279] */ 26 return e; 27} 28