C++: simplify output from suggest_alternatives_for
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / pr85782.c
blob6f84dfc7d8f442cb9216e2b75f7b70a73f89ef7b
1 /* PR c++/85782 */
3 #include <assert.h>
5 #define N 100
7 int
8 main ()
10 int i, a[N];
12 for (i = 0; i < N; i++)
13 a[i] = i+1;
15 #pragma acc parallel loop copy(a)
16 for (i = 0; i < N; i++)
18 if (i % 2)
19 continue;
20 a[i] = 0;
23 for (i = 0; i < N; i++)
25 if (i % 2)
26 assert (a[i] == i+1);
27 else
28 assert (a[i] == 0);
31 return 0;