PR c++/86342 - -Wdeprecated-copy and system headers.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / pr70289.f90
blob63bde44100da8eaa181d875319f3e63f8f2cf8f0
1 program foo
2 implicit none
3 integer :: i
4 integer :: temp = 0
5 integer :: temp2 = 0
7 !$acc parallel
8 !$acc loop gang private(temp)
9 do i=1, 10000
10 temp = 0
11 enddo
12 !$acc end parallel
14 !$acc parallel reduction(+:temp2)
15 !$acc loop gang reduction(+:temp2)
16 do i=1, 10000
17 temp2 = 0
18 enddo
19 !$acc end parallel
20 end program foo