2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18596-2.c
blob9b50d01258604835035aa57d3a0849973ae2e9c2
1 /* { dg-do compile } */
2 /* { dg-options "-funit-at-a-time -std=gnu89" } */
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 ();