| 1 |
! { dg-additional-options -Wuninitialized } |
| 2 |
|
| 3 |
type :: type1 |
| 4 |
character(len=35,kind=4) :: a |
| 5 |
end type type1 |
| 6 |
|
| 7 |
type :: type2 |
| 8 |
character(len=35,kind=4), pointer :: b |
| 9 |
end type type2 |
| 10 |
|
| 11 |
type :: aux1 |
| 12 |
character(len=22,kind=4) :: y |
| 13 |
end type aux1 |
| 14 |
|
| 15 |
type, extends(aux1) :: aux |
| 16 |
character(len=33,kind=4) :: x |
| 17 |
end type aux |
| 18 |
|
| 19 |
type :: type3 |
| 20 |
class(aux), pointer :: c(:) |
| 21 |
end type type3 |
| 22 |
|
| 23 |
type :: type4 |
| 24 |
integer, pointer :: d(:) |
| 25 |
end type type4 |
| 26 |
|
| 27 |
type :: type5 |
| 28 |
type(aux1) :: e |
| 29 |
end type type5 |
| 30 |
|
| 31 |
type :: type6 |
| 32 |
type(aux1), pointer :: f |
| 33 |
end type type6 |
| 34 |
|
| 35 |
type :: type7 |
| 36 |
class(aux), pointer :: g |
| 37 |
end type type7 |
| 38 |
|
| 39 |
type(type1) :: foo |
| 40 |
type(type2) :: bar |
| 41 |
type(type3) :: qux |
| 42 |
type(type4) :: quux |
| 43 |
type(type5) :: fred |
| 44 |
type(type6) :: jim |
| 45 |
type(type7) :: shiela |
| 46 |
|
| 47 |
type(type1), pointer :: pfoo |
| 48 |
type(type2), pointer :: pbar |
| 49 |
type(type3), pointer :: pqux |
| 50 |
type(type4), pointer :: pquux |
| 51 |
type(type5), pointer :: pfred |
| 52 |
type(type6), pointer :: pjim |
| 53 |
type(type7), pointer :: pshiela |
| 54 |
|
| 55 |
class(type1), pointer :: cfoo |
| 56 |
class(type2), pointer :: cbar |
| 57 |
class(type3), pointer :: cqux |
| 58 |
class(type4), pointer :: cquux |
| 59 |
class(type5), pointer :: cfred |
| 60 |
class(type6), pointer :: cjim |
| 61 |
class(type7), pointer :: cshiela |
| 62 |
|
| 63 |
class(type1), allocatable :: acfoo |
| 64 |
class(type2), allocatable :: acbar |
| 65 |
class(type3), allocatable :: acqux |
| 66 |
class(type4), allocatable :: acquux |
| 67 |
class(type5), allocatable :: acfred |
| 68 |
class(type6), allocatable :: acjim |
| 69 |
class(type7), allocatable :: acshiela |
| 70 |
|
| 71 |
!$acc enter data copyin(foo) |
| 72 |
!$acc enter data copyin(foo%a) |
| 73 |
!$acc enter data copyin(bar) |
| 74 |
!$acc enter data copyin(bar%b) |
| 75 |
!$acc enter data copyin(qux) |
| 76 |
!$acc enter data copyin(qux%c) |
| 77 |
!$acc enter data copyin(quux) |
| 78 |
!$acc enter data copyin(quux%d) |
| 79 |
!$acc enter data copyin(fred) |
| 80 |
!$acc enter data copyin(fred%e) |
| 81 |
!$acc enter data copyin(jim) |
| 82 |
!$acc enter data copyin(jim%f) |
| 83 |
!$acc enter data copyin(shiela) |
| 84 |
!$acc enter data copyin(shiela%g) |
| 85 |
|
| 86 |
!$acc enter data copyin(pfoo) |
| 87 |
!$acc enter data copyin(pfoo%a) |
| 88 |
!$acc enter data copyin(pbar) |
| 89 |
!$acc enter data copyin(pbar%b) |
| 90 |
!$acc enter data copyin(pqux) |
| 91 |
!$acc enter data copyin(pqux%c) |
| 92 |
!$acc enter data copyin(pquux) |
| 93 |
!$acc enter data copyin(pquux%d) |
| 94 |
!$acc enter data copyin(pfred) |
| 95 |
!$acc enter data copyin(pfred%e) |
| 96 |
!$acc enter data copyin(pjim) |
| 97 |
!$acc enter data copyin(pjim%f) |
| 98 |
!$acc enter data copyin(pshiela) |
| 99 |
!$acc enter data copyin(pshiela%g) |
| 100 |
|
| 101 |
!$acc enter data copyin(cfoo) |
| 102 |
!$acc enter data copyin(cfoo%a) |
| 103 |
!$acc enter data copyin(cbar) |
| 104 |
!$acc enter data copyin(cbar%b) |
| 105 |
!$acc enter data copyin(cqux) |
| 106 |
!$acc enter data copyin(cqux%c) |
| 107 |
!$acc enter data copyin(cquux) |
| 108 |
!$acc enter data copyin(cquux%d) |
| 109 |
!$acc enter data copyin(cfred) |
| 110 |
!$acc enter data copyin(cfred%e) |
| 111 |
!$acc enter data copyin(cjim) |
| 112 |
!$acc enter data copyin(cjim%f) |
| 113 |
!$acc enter data copyin(cshiela) |
| 114 |
!$acc enter data copyin(cshiela%g) |
| 115 |
|
| 116 |
!$acc enter data copyin(acfoo) |
| 117 |
!$acc enter data copyin(acfoo%a) |
| 118 |
!$acc enter data copyin(acbar) |
| 119 |
!$acc enter data copyin(acbar%b) |
| 120 |
!$acc enter data copyin(acqux) |
| 121 |
!$acc enter data copyin(acqux%c) |
| 122 |
!$acc enter data copyin(acquux) |
| 123 |
!$acc enter data copyin(acquux%d) |
| 124 |
!$acc enter data copyin(acfred) |
| 125 |
!$acc enter data copyin(acfred%e) |
| 126 |
!$acc enter data copyin(acjim) |
| 127 |
!$acc enter data copyin(acjim%f) |
| 128 |
!$acc enter data copyin(acshiela) |
| 129 |
!$acc enter data copyin(acshiela%g) |
| 130 |
|
| 131 |
end |