c: minor fixes related to arrays of unspecified size
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / cunroll-3.c
blobe25c638ac5149d3508a89d24b10e1aa9abbd6f68
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
3 int a[1];
4 void
5 test(int c)
6 {
7 int i;
8 for (i=0;i<c;i++)
10 a[i]=5;
13 /* If we start duplicating headers prior curoll, this loop will have 0 iterations. */
15 /* { dg-final { scan-tree-dump "loop with 1 iterations completely unrolled" "cunrolli"} } */