PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr68680.c
blob5524e156362ef94b0ba9a165581181ce13a57854
1 /* PR tree-optimization/68680 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fstack-protector-strong" } */
5 int foo (char *);
7 int
8 bar (unsigned long x)
10 char a[x];
11 return foo (a);
14 /* Verify that this function is stack protected. */
15 /* { dg-final { scan-assembler "stack_chk_fail" } } */