blob: f05d743fda024693d31b833aadfb278f84971473 [file] [log] [blame]
/* Verify zero initialization for VLA automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */
extern void bar (int);
void foo(int n)
{
int arr[n];
bar (arr[2]);
return;
}
/* { dg-final { scan-tree-dump ".DEFERRED_INIT \\(D.\\d*, 1, 1\\)" "gimple" } } */