gcc/testsuite/c-c++-common/auto-init-16.c
raw| 1 | /* Verify the auto initialization of nested VLA. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */ |
| 4 | |
| 5 | void g(void *); |
| 6 | |
| 7 | void foo(int a) |
| 8 | { |
| 9 | int x[a][a]; |
| 10 | g(x); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-tree-dump ".DEFERRED_INIT \\(D.\\d*, 1, \&\"x\"" "gimple" } } */ |