Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/polymorphic-mapping.f90

raw
1 type t
2 integer :: t
3 end type t
4 class(t), target, allocatable :: c, ca(:)
5 class(*), pointer :: p, pa(:)
6 integer :: x
7 allocate( t :: c, ca(5))
8 p => c
9 pa => ca
10
11 ! 11111111112222222222333333333344
12 !2345678901234567890123456789012345678901
13 !$omp target firstprivate(ca) ! { dg-error "27:Polymorphic list item 'ca' at .1. in FIRSTPRIVATE clause has unspecified behavior and unsupported" }
14 !$omp end target
15
16 !$omp target parallel do firstprivate(ca) ! { dg-error "39:Polymorphic list item 'ca' at .1. in FIRSTPRIVATE clause has unspecified behavior and unsupported" }
17 do x = 0, 5
18 end do
19
20 !$omp target parallel do private(ca) ! { dg-error "34:Polymorphic list item 'ca' at .1. in PRIVATE clause has unspecified behavior and unsupported" }
21 do x = 0, 5
22 end do
23
24 !$omp target private(ca) ! { dg-error "22:Polymorphic list item 'ca' at .1. in PRIVATE clause has unspecified behavior and unsupported" }
25 block
26 end block
27
28 ! -------------------------
29
30 !$omp target parallel map(release: x) ! { dg-error "36:TARGET with map-type other than TO, FROM, TOFROM, or ALLOC on MAP clause" }
31
32 block
33 end block
34
35 end