summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_002.c
blob: 8e49bb51fec9a728b27e13d513011ba2b02b7361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*	$NetBSD: msg_002.c,v 1.6 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_002.c"

// Test for message: empty declaration [2]

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

/* expect+1: warning: empty declaration [2] */
int;

int local_variable;

/* expect+1: warning: empty declaration [2] */
const;

void
cover_cgram_declaration(void)
{

	/* expect+1: warning: typedef declares no type name [72] */
	typedef const;

	/* expect+1: warning: empty declaration [2] */
	const;

	/* expect+1: warning: typedef declares no type name [72] */
	typedef int;

	/* expect+1: warning: empty declaration [2] */
	int;
}