1 /* PR tree-optimization/68680 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fstack-protector-strong" } */ 4 5 int foo (char *); 6 7 int bar(unsigned long x)8bar (unsigned long x) 9 { 10 char a[x]; 11 return foo (a); 12 } 13 14 /* Verify that this function is stack protected. */ 15 /* { dg-final { scan-assembler "stack_chk_fail" } } */ 16