aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/decl-nospec-2.c
blob: ab628949b96744a6b1511914baf128b02e419339 (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.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "-pedantic" } */

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