2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18596-2.c
blob7a52e807d383d01c8b3bc5b99d630a297dfb82c4
1 /* { dg-do compile } */
2 /* { dg-options "-funit-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 ();