d_c99_decls_after_stmt.c revision 1.5
1/*	$NetBSD: d_c99_decls_after_stmt.c,v 1.5 2023/01/22 17:17:25 rillig Exp $	*/
2# 3 "d_c99_decls_after_stmt.c"
3
4/*
5 * Before cgram.y 1.50 from 2011-10-04, lint complained about syntax errors
6 * at the second 'int'.
7 *
8 * https://gnats.netbsd.org/45417
9 */
10
11void
12two_groups_of_decl_plus_stmt(void)
13{
14	int i = 0;
15	i += 1;
16
17	int j = 0;
18	j += 1;
19}
20
21typedef int int_t;
22
23int
24second_decl_stmt_uses_a_typedef(void)
25{
26	int i = 0;
27	i += 1;
28
29	int_t j = 0;
30	j += 1;
31
32	return 0;
33}
34
35void
36function_with_argument(int i)
37{
38	i += 1;
39
40	int j = 0;
41	j += 1;
42}
43