Daily bump.
[official-gcc.git] / libgomp / testsuite / libgomp.c / loop-3.c
blobba3ecdaca3af3cac779f2644eef5801a9cb85e13
1 /* { dg-do run } */
3 extern void abort (void);
5 volatile int count;
6 static int test(void)
8 return ++count > 0;
11 int main()
13 int i;
14 #pragma omp for
15 for (i = 0; i < 10; ++i)
17 if (test())
18 continue;
19 abort ();
21 if (i != count)
22 abort ();
23 return 0;