msg_259_ilp32.c revision 1.1
1/*	$NetBSD: msg_259_ilp32.c,v 1.1 2021/06/29 09:19:17 rillig Exp $	*/
2# 3 "msg_259_ilp32.c"
3
4// Test for message: argument #%d is converted from '%s' to '%s' due to prototype [259]
5
6/* lint1-only-on-ilp32 */
7/* lint1-extra-flags: -h */
8
9void farg_char(char);
10void farg_int(int);
11void farg_long(long);
12
13void
14example(char c, int i, long l)
15{
16	farg_char(c);
17	farg_int(c);
18	/* expect+1: from 'char' to 'long' due to prototype [259] */
19	farg_long(c);
20
21	farg_char(i);		/* XXX: why no warning? */
22	farg_int(i);
23	/* expect+1: from 'int' to 'long' due to prototype [259] */
24	farg_long(i);
25
26	farg_char(l);		/* XXX: why no warning? */
27	/* expect+1: from 'long' to 'int' due to prototype [259] */
28	farg_int(l);
29	farg_long(l);
30}
31