1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops2-details" } */
3 
4 /* Constant bound, reduction.  */
5 
6 #define N 4000
7 
8 unsigned int *a;
9 
10 unsigned int
f(void)11 f (void)
12 {
13   int i;
14   unsigned int sum = 1;
15 
16   for (i = 0; i < N; ++i)
17     sum += a[i];
18 
19   return sum;
20 }
21 
22 /* { dg-final { scan-tree-dump-times "alternative exit-first loop transform succeeded" 1 "parloops2" } } */
23