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