PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr24225.c
blob576802ba5892a002d2b816dacd8862a46abce400
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" } */
5 /* { dg-require-profiling "-fprofile-generate" } */
7 int
8 foo (int a, int b)
10 if (a)
11 return 1;
13 int s [b];
14 return 0;