Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/polymorphic-mapping-2.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 logical ll
8 allocate( t :: c, ca(5))
9 p => c
10 pa => ca
11
12 !$omp target ! { dg-warning "Mapping of polymorphic list item 'ca' is unspecified behavior \\\[-Wopenmp\\\]" }
13 ll = allocated(ca)
14 !$omp end target
15
16 end