Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/c-c++-common/auto-init-15.c

15 lines
341 B
C

/* Verify the auto initialization of nested VLA. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */
/* { dg-require-effective-target alloca } */
void g(void *);
void foo(int a)
{
int x[a][a];
g(x);
}
/* { dg-final { scan-tree-dump ".DEFERRED_INIT \\(D.\\d*, 2, \&\"x\"" "gimple" } } */