1/* $NetBSD: d_return_type.c,v 1.6 2023/07/07 19:45:22 rillig Exp $ */ 2# 3 "d_return_type.c" 3 4/* lint1-extra-flags: -X 351 */ 5 6enum A { 7 A 8}; 9 10enum B { 11 B 12}; 13 14enum A 15func(enum B arg) 16{ 17 /* expect+1: warning: function has return type 'enum A' but returns 'enum B' [211] */ 18 return arg; 19} 20