1 static int array[] = {
2 [1] = 3,
3 [1] = 1, /* check-should-warn */
4 };
5
6 /*
7 * check-name: Woverride-init-yes
8 * check-command: sparse -Woverride-init $file
9 *
10 * check-error-start
11 Woverride-init-yes.c:2:10: warning: Initializer entry defined twice
12 Woverride-init-yes.c:3:10: also defined here
13 * check-error-end
14 */