aboutsummaryrefslogtreecommitdiff
blob: ecc5bd3b5bad78d0d99e0c8c0fbaa0c65461942d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
static int a[] = {
	[0] = 0,		// OK
	[\0] = 1,		// KO
};
/*
 * check-name: Bad array designated initializer
 * check-command: sparse $file
 * check-exit-value: 1
 *
 * check-output-start
bad-array-designated-initializer.c:3:3: error: Expected constant expression
bad-array-designated-initializer.c:3:3: error: Expected } at end of initializer
bad-array-designated-initializer.c:3:3: error: got \
 * check-output-end
 *
 * check-known-to-fail
 */