Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgomp / testsuite / libgomp.c / pr104783-2.c
blob8750d915d01e642d8a43687168ffdc93235d962e
1 #define N (32 * 32)
3 #define TYPE float
4 #define VAR v
5 #define INIT 0.0
6 #define UPDATE + 1.0
7 #define EXPECTED N
9 int
10 main (void)
12 TYPE VAR = INIT;
13 #pragma omp target map(tofrom: VAR)
14 #pragma omp parallel for simd
15 for (int i = 0 ; i < N; i++)
17 #pragma omp atomic update
18 VAR = VAR UPDATE;
21 if (VAR != EXPECTED)
22 __builtin_abort ();
24 return 0;