| 1 |
type t |
| 2 |
integer :: t |
| 3 |
end type t |
| 4 |
class(t), target, allocatable :: c, ca(:) |
| 5 |
class(t), 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 enter data map(c, ca, p, pa) |
| 14 |
! { dg-warning "29:Mapping of polymorphic list item 'c' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-1 } |
| 15 |
! { dg-warning "32:Mapping of polymorphic list item 'ca' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-2 } |
| 16 |
! { dg-warning "36:Mapping of polymorphic list item 'p' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-3 } |
| 17 |
! { dg-warning "39:Mapping of polymorphic list item 'pa' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-4 } |
| 18 |
|
| 19 |
! 11111111112222222222333333333344 |
| 20 |
!2345678901234567890123456789012345678901 |
| 21 |
|
| 22 |
! 11111111112222222222333333333344 |
| 23 |
!2345678901234567890123456789012345678901 |
| 24 |
!$omp target update from(c,ca), to(p,pa) |
| 25 |
! { dg-warning "26:Mapping of polymorphic list item 'c' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-1 } |
| 26 |
! { dg-warning "28:Mapping of polymorphic list item 'ca' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-2 } |
| 27 |
! { dg-warning "36:Mapping of polymorphic list item 'p' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-3 } |
| 28 |
! { dg-warning "38:Mapping of polymorphic list item 'pa' is unspecified behavior \\\[-Wopenmp\\\]" "" { target *-*-* } .-4 } |
| 29 |
|
| 30 |
end |