summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_327.c
blob: 3e01dce2bbf2828ccab8ede0da8ed521d136c0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*	$NetBSD: msg_327.c,v 1.8 2023/07/07 06:03:31 rillig Exp $	*/
# 3 "msg_327.c"

/* Test for message: declarations after statements is a C99 feature [327] */

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

void statement(void);

/*ARGSUSED*/
void
example(void)
{
	statement();
	/* expect+1: warning: declarations after statements is a C99 feature [327] */
	int declaration_1;
	statement();
	/* expect+1: warning: declarations after statements is a C99 feature [327] */
	int declaration_2;
	statement();
	/* expect+1: warning: declarations after statements is a C99 feature [327] */
	int declaration_3;
}