blob: 5524e156362ef94b0ba9a165581181ce13a57854 [file] [log] [blame]
/* PR tree-optimization/68680 */
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-protector-strong" } */
int foo (char *);
int
bar (unsigned long x)
{
char a[x];
return foo (a);
}
/* Verify that this function is stack protected. */
/* { dg-final { scan-assembler "stack_chk_fail" } } */