1 /* Test diagnostic for array defaulting to one element. */ 2 /* Origin: Joseph Myers <joseph@codesourcery.com> */ 3 /* { dg-do compile } */ 4 /* { dg-options "" } */ 5 6 int a[]; /* { dg-warning "array 'a' assumed to have one element" } */ 7