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

/* Test for message: ANSI C requires formal parameter before '...' [84] */

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

/* expect+2: error: ANSI C requires formal parameter before '...' [84] */
void
only_ellipsis(...)
{
}

char
ok_ellipsis(const char *fmt, ...)
{
	return fmt[0];
}