summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vla-21.c
blob: a39ae0b426660fe45f038942a8f83993d20242ee (plain)
1
2
3
4
5
6
7
/* Type names for VLAs should be allowed outside functions if the size
   is not evaluated.  PR 39581.  */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */

int a;
int b = sizeof (int (*)[a]);