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