1 /* { dg-do run } */ 2 /* { dg-options "-ftree-parallelize-loops=2 -O1 -fno-tree-loop-im" } */ 3 4 #define N 1000 5 6 unsigned int i = 0; 7 8 static void __attribute__((noinline, noclone)) foo(void)9foo (void) 10 { 11 unsigned int z; 12 for (z = 0; z < N; ++z) 13 ++i; 14 } 15 16 extern void abort (void); 17 18 int main(void)19main (void) 20 { 21 foo (); 22 if (i != N) 23 abort (); 24 25 return 0; 26 } 27