aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/declaration-after-statement-ansi.c
blob: 22635cfafd0d1bd61849903cb35fc584417595d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
static void func (int i)
{
	i;
	int j = i;
}
/*
 * check-name: declaration after statement (ANSI)
 * check-command: sparse -ansi $file
 * check-error-start
declaration-after-statement-ansi.c:4:9: warning: mixing declarations and code
 * check-error-end
 */