PR tree-optimization/24225
[official-gcc.git] / gcc / testsuite / gcc.dg / pr24225.c
blobb364f820d4be95020a9200005042a6d30fc4625f
1 /* This was an ICE caused by the compiler-generated stack save/restore
2 statements around s[b]. */
3 /* { dg-do compile} */
4 /* { dg-options "-O1 -fprofile-arcs" } */
6 int
7 foo (int a, int b)
9 if (a)
10 return 1;
12 int s [b];
13 return 0;