Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / pr68813.f90
blobc4552053e28c5d25b4d434da3439dc8dea65dfef
1 ! { dg-do run }
3 program foo
4 implicit none
5 integer, parameter :: n = 100
6 integer, dimension(n,n) :: a
7 integer :: i, j, sum = 0
9 a = 1
11 !$acc parallel copyin(a(1:n,1:n)) firstprivate (sum)
12 !$acc loop gang reduction(+:sum)
13 do i=1, n
14 !$acc loop vector reduction(+:sum)
15 do j=1, n
16 sum = sum + a(i, j)
17 enddo
18 enddo
19 !$acc end parallel
21 end program foo