summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/decl-nospec-3.c
blob: 8fb03ea4cc3fec0da25551d2d97e8c421a43466e (plain)
1
2
3
4
5
6
7
8
/* Data definition with no type or storage class should receive a
   pedwarn, rather than a warning which becomes an error with
   -pedantic.  Test with -pedantic-errors.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "-pedantic-errors" } */

foo(); /* { dg-error "data definition has no type or storage class" } */