* es.po: Update.
[official-gcc.git] / gcc / testsuite / gcc.dg / vla-19.c
blob83093c9291a400bc2250a598aa46e4ac56383fae
1 /* Test diagnostics for variably modified function return types. PR
2 39564. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c99" } */
6 int a;
8 void
9 f1 (void)
11 typedef int T[a];
12 extern T *g1 (void); /* { dg-error "non-nested function with variably modified type" } */
15 void
16 f2 (void)
18 extern int (*g2 (void))[a]; /* { dg-error "non-nested function with variably modified type" } */
21 void
22 f3 (void)
24 typedef int T[a];
25 T *g3 (void); /* { dg-error "non-nested function with variably modified type" } */
28 void
29 f4 (void)
31 int (*g4 (void))[a]; /* { dg-error "non-nested function with variably modified type" } */