PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr23848-3.c
blobd2555049b7f64a15f975a4595645be86a6bb6d02
1 /* PR middle-end/23848 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 void bar (int, char *, char *, char *, char *, int);
6 void foo (int size)
8 int i;
9 for (i = 0; i < size; i++)
11 char temp[size];
12 temp[size-1] = '\0';
14 char temp2[size];
16 char temp3[size];
18 char temp4[size];
19 bar (i, temp, temp2, temp3, temp4, size);
26 /* { dg-final { scan-tree-dump-times "__builtin_stack_save" 1 "optimized"} } */
27 /* { dg-final { scan-tree-dump-times "__builtin_stack_restore" 1 "optimized"} } */
28 /* { dg-final { cleanup-tree-dump "optimized" } } */