PR testsuite/85483: Move aarch64/sve/vcond_1.c test to g++.dg/other/
[official-gcc.git] / libgomp / testsuite / libgomp.c / static-chunk-size-one.c
blob9ed7b83625a51b5a3e4969ee0add9350442ed721
1 extern void abort ();
3 int
4 bar ()
6 int a = 0, i;
8 #pragma omp parallel for num_threads (3) reduction (+:a) schedule(static, 1)
9 for (i = 0; i < 10; i++)
10 a += i;
12 return a;
15 int
16 main (void)
18 int res;
19 res = bar ();
20 if (res != 45)
21 abort ();
22 return 0;