summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/decl-7.c
blob: 14b67baef8b24517262f1a9a758906b4fb615e67 (plain)
1
2
3
4
5
6
/* Test diagnostic for array defaulting to one element.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "" } */

int a[]; /* { dg-warning "array 'a' assumed to have one element" } */