Home | History | Annotate | Line # | Download | only in lint1
msg_259.c revision 1.8
      1 /*	$NetBSD: msg_259.c,v 1.8 2021/06/29 13:58:13 rillig Exp $	*/
      2 # 3 "msg_259.c"
      3 
      4 // Test for message: argument #%d is converted from '%s' to '%s' due to prototype [259]
      5 
      6 /* lint1-only-if lp64 */
      7 /* lint1-extra-flags: -h */
      8 
      9 void farg_char(char);
     10 void farg_int(int);
     11 void farg_long(long);
     12 
     13 void
     14 example(char c, int i, long l)
     15 {
     16 	farg_char(c);
     17 	farg_int(c);
     18 	farg_long(c);		/* XXX: 259 on ILP32 but not LP64 */
     19 	farg_char(i);		/* XXX: why no warning? */
     20 	farg_int(i);
     21 	farg_long(i);		/* XXX: 259 on ILP32 but not LP64 */
     22 	farg_char(l);		/* XXX: why no warning? */
     23 	farg_int(l);		/* expect: 259 */
     24 	farg_long(l);
     25 }
     26