blob: 3e69cf50749b183db518d1dbf30da47e581965bb (
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.7 2023/03/28 14:44:35 rillig Exp $ */
# 3 "msg_327.c"
/* Test for message: declarations after statements is a C99 feature [327] */
/* lint1-flags: -w -X 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;
}
|