1 /* pr39500: autopar fails to parallel */ 2 /* origin: nemokingdom@gmail.com(LiFeng) */ 3 /* { dg-do compile } */ 4 /* { dg-options "-O2 -ftree-parallelize-loops=4 -fdump-tree-parloops2-details" } */ 5 main(void)6int main (void) 7 { 8 int i; 9 int x[1000]; 10 11 for (i = 0; i < 101; i++) 12 x[i] = x[i+100]; 13 14 return x[12]; 15 } 16 17 /* This loop cannot be parallelized due to a dependence. */ 18 19 /* { dg-final { scan-tree-dump-times "SUCCESS: may be parallelized" 0 "parloops2" } } */ 20