* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / combined-reduction.c
blobb5ce4ed7b3d46fb951f44d472b7bd6e2050f3abd
1 /* Test a combined acc parallel loop reduction. */
3 /* { dg-do run } */
5 #include <assert.h>
7 int
8 main ()
10 int i, v1 = 0, v2 = 0, n = 100;
12 #pragma acc parallel loop reduction(+:v1, v2)
13 for (i = 0; i < n; i++)
15 v1++;
16 v2++;
19 assert (v1 == n);
20 assert (v2 == n);
22 return 0;