aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/check_access-multi.c
blob: e0ee4682587f4e8fe8f393c5280f593691f21ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern int *a;
extern int b[1];

static void foo(void)
{
	*a = b[1];
}

/*
 * check-name: check_access-multi
 *
 * check-error-start
check_access-multi.c:6:15: warning: invalid access past the end of 'b' (4 4)
 * check-error-end
 */