1 /* Verify the auto initialization of nested VLA. */
2 /* { dg-do compile } */
3 /* { dg-options "-ftrivial-auto-var-init=zero -fdump-tree-gimple" } */
4 /* { dg-require-effective-target alloca } */
5
6 void g(void *);
7
8 void foo(int a)
9 {
10 int x[a][a];
11 g(x);
12 }
13
14 /* { dg-final { scan-tree-dump ".DEFERRED_INIT \\(D.\\d*, 2, \&\"x\"" "gimple" } } */