| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c99 -pedantic-errors" } */ |
| 3 |
|
| 4 |
void fo(char buf[static]); /* { dg-error "'static' may not be used without an array size" } */ |
| 5 |
void fo(char buf[static]) { } /* { dg-error "'static' may not be used without an array size" } */ |
| 6 |
|
| 7 |
void fu(char buf[static *]); /* { dg-error "'static' may not be used with an unspecified variable length array size" } */ |
| 8 |
void fu(char buf[static *]) { } /* { dg-error "'static' may not be used with an unspecified variable length array size" } */ |
| 9 |
|
| 10 |
void fe(int n, char buf[static n]); |
| 11 |
void fe(int n, char buf[static *]) { } /* { dg-error "'static' may not be used with an unspecified variable length array size" } */ |
| 12 |
|
| 13 |
void fa(int *n, char buf[static *n]); |
| 14 |
void fa(int *n, char buf[static *n]) { } |