aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/check_access-store.c
blob: 489507fd7bd722742d73a98872bf60a0e9edd7e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extern int a[1];

static int r(void)
{
	return a[1];
}

static void w(void)
{
	a[1] = 2;
}

/*
 * check-name: check_access-store
 * check-known-to-fail
 *
 * check-error-start
check_access-store.c:5:17: warning: invalid access past the end of 'a' (4 4)
check_access-store.c:10:17: warning: invalid access past the end of 'a' (4 4)
 * check-error-end
 */