Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr23848-1.c
blob08916e4e5dd6720a031136d206d22b9391754d95
1 /* PR middle-end/23848 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 void bar1 (char *, int);
6 void foo1 (int size)
8 char temp[size];
9 temp[size-1] = '\0';
10 bar1 (temp, size);
13 void bar2 (char *, char *, char *, char *, int);
14 void foo2 (int size)
16 char temp[size];
17 temp[size-1] = '\0';
19 char temp2[size];
21 char temp3[size];
23 char temp4[size];
24 bar2 (temp, temp2, temp3, temp4, size);
30 /* { dg-final { scan-tree-dump-not "__builtin_stack_save" "optimized"} } */
31 /* { dg-final { scan-tree-dump-not "__builtin_stack_restore" "optimized"} } */
32 /* { dg-final { cleanup-tree-dump "optimized" } } */