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

// Test for message: prototype does not match old-style definition [63]

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

int
function(a, b)
	int a, b;
{
	return a + b;
}

/* expect+1: error: prototype does not match old-style definition [63] */
double function(int);