* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / reduction-initial-1.c
blob9991db07013bfb554e1beac14b109565fc12e71e
1 /* { dg-do run } */
3 int
4 main(void)
6 #define I 5
7 #define N 32
8 #define A 8
10 int a = A;
11 int s = I;
13 #pragma acc parallel vector_length(N) copy(s)
15 int i;
16 #pragma acc loop reduction(+:s)
17 for (i = 0; i < N; ++i)
18 s += a;
21 if (s != I + N * A)
22 __builtin_abort();
24 return 0;