summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_299.c
blob: 37f6df3504ca4570dc16bed6752a4212e40e6204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$NetBSD: msg_299.c,v 1.5 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_299.c"

/* Test for message: prototype does not match old-style definition, arg #%d [299] */

/* lint1-flags: -w -X 351 */

old_style(x)
	double x;
{
	return x > 0.0;
}

/* expect+1: error: prototype does not match old-style definition, arg #1 [299] */
void old_style(char ch);