* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18596-1.c
blob0d8d290dcb9ff7a0dd52afc05777cb06ac4ba37f
1 /* { dg-do compile } */
2 /* { dg-options "-fno-unit-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 ();