OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vla-21.c
1 /* Type names for VLAs should be allowed outside functions if the size
2    is not evaluated.  PR 39581.  */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c99 -pedantic-errors" } */
5
6 int a;
7 int b = sizeof (int (*)[a]);