In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18596-1.c
blobdc34f444e5de47bd3563eed66781e29dc2ffe2bd
1 /* { dg-do compile } */
2 /* { dg-options "-fno-unit-at-a-time" } */
4 int f(int i)
6 static int g(); /* { dg-error "invalid storage class" } */
7 static int g() { return i; } /* { dg-error "invalid storage class" } */
8 return g();
11 int k (int i)
13 static int g (); /* { dg-error "invalid storage class" } */
14 int g () {
15 return i;
18 return g ();
21 int l (int i)
23 auto int g ();
24 static int g () { /* { dg-error "invalid storage class" } */
25 return i;
28 static int h () { /* { dg-error "invalid storage class" } */
29 return 3;
31 return g () + h ();
34 int m (int i)
36 static g (); /* { dg-error "invalid storage class" } */
37 static g () { return i; } /* { dg-error "invalid storage class" } */
38 return g ();