blob: c073bc9a1f8b1dd3923e3cfba86df6f38570c1b7 [file] [log] [blame]
/* Verify zero initialization for VLA automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */
/* { dg-require-effective-target alloca } */
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, \&\"arr\"" "gimple" } } */