Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/coarray.f95

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-fcoarray=single" }
3 !
4 ! PR fortran/63861
5
6 module test
7 contains
8 subroutine oacc1(a)
9 implicit none
10 integer :: i
11 integer, codimension[*] :: a
12 !$acc declare device_resident (a)
13 !$acc data copy (a)
14 !$acc end data
15 !$acc data deviceptr (a)
16 !$acc end data
17 !$acc parallel private (a)
18 !$acc end parallel
19 !$acc serial private (a)
20 !$acc end serial
21 !$acc host_data use_device (a)
22 !$acc end host_data
23 !$acc parallel loop reduction(+:a) ! { dg-error "Array 'a' is not permitted in reduction" }
24 do i = 1,5
25 enddo
26 !$acc end parallel loop
27 !$acc serial loop reduction(+:a) ! { dg-error "Array 'a' is not permitted in reduction" }
28 do i = 1,5
29 enddo
30 !$acc end serial loop
31 !$acc parallel loop
32 do i = 1,5
33 !$acc cache (a) ! { dg-error "" "TODO" { xfail *-*-* } }
34 enddo
35 !$acc end parallel loop
36 !$acc serial loop
37 do i = 1,5
38 !$acc cache (a) ! { dg-error "" "TODO" { xfail *-*-* } }
39 enddo
40 !$acc end serial loop
41 !$acc update device (a)
42 !$acc update host (a)
43 !$acc update self (a)
44 end subroutine oacc1
45 end module test