Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / kernels-acc-loop-reduction.f90
blob0b939c04fbb8f7932374c413b1c2603c0450d85e
1 ! { dg-do run }
3 program foo
4 IMPLICIT NONE
5 INTEGER :: vol = 0
7 call bar (vol)
9 if (vol .ne. 2) stop 1
10 end program foo
12 subroutine bar(vol)
13 IMPLICIT NONE
14 INTEGER :: vol
15 INTEGER :: j
17 !$ACC KERNELS
18 !$ACC LOOP REDUCTION(+:vol)
19 DO j=1,2
20 vol = vol + 1
21 ENDDO
22 !$ACC END KERNELS
23 end subroutine bar