5 integer, allocatable
:: a1(:)
6 integer, allocatable
:: b1(:)
7 integer, allocatable
:: c1(:)
8 integer, allocatable
:: b2(:,:)
9 integer, allocatable
:: c3(:,:,:)
12 if (.not
.allocated (a1
)) STOP 1
16 !$acc parallel copy(a1(1:5))
24 if (a1(1) .ne
. 1) STOP 1
25 if (a1(2) .ne
. 2) STOP 2
26 if (a1(3) .ne
. 3) STOP 3
27 if (a1(4) .ne
. 4) STOP 4
28 if (a1(5) .ne
. 5) STOP 5
33 if (.not
.allocated (a1
)) STOP 2
37 !$acc parallel copy(a1(0:4))
45 if (a1(0) .ne
. 1) STOP 6
46 if (a1(1) .ne
. 2) STOP 7
47 if (a1(2) .ne
. 3) STOP 8
48 if (a1(3) .ne
. 4) STOP 9
49 if (a1(4) .ne
. 5) STOP 10
54 if (.not
.allocated (b2
)) STOP 3
58 !$acc parallel copy(b2(1:5,1:5))
66 if (b2(1,1) .ne
. 1) STOP 11
67 if (b2(2,2) .ne
. 2) STOP 12
68 if (b2(3,3) .ne
. 3) STOP 13
69 if (b2(4,4) .ne
. 4) STOP 14
70 if (b2(5,5) .ne
. 5) STOP 15
74 allocate (b2(0:4,0:4))
75 if (.not
.allocated (b2
)) STOP 4
79 !$acc parallel copy(b2(0:4,0:4))
87 if (b2(0,0) .ne
. 1) STOP 16
88 if (b2(1,1) .ne
. 2) STOP 17
89 if (b2(2,2) .ne
. 3) STOP 18
90 if (b2(3,3) .ne
. 4) STOP 19
91 if (b2(4,4) .ne
. 5) STOP 20
96 if (.not
.allocated (c3
)) STOP 5
100 !$acc parallel copy(c3(1:5,1:5,1:5))
108 if (c3(1,1,1) .ne
. 1) STOP 21
109 if (c3(2,2,2) .ne
. 2) STOP 22
110 if (c3(3,3,3) .ne
. 3) STOP 23
111 if (c3(4,4,4) .ne
. 4) STOP 24
112 if (c3(5,5,5) .ne
. 5) STOP 25
116 allocate (c3(0:4,0:4,0:4))
117 if (.not
.allocated (c3
)) STOP 6
121 !$acc parallel copy(c3(0:4,0:4,0:4))
129 if (c3(0,0,0) .ne
. 1) STOP 26
130 if (c3(1,1,1) .ne
. 2) STOP 27
131 if (c3(2,2,2) .ne
. 3) STOP 28
132 if (c3(3,3,3) .ne
. 4) STOP 29
133 if (c3(4,4,4) .ne
. 5) STOP 30
138 if (.not
.allocated (a1
)) STOP 7
141 if (.not
.allocated (b1
)) STOP 8
144 if (.not
.allocated (c1
)) STOP 9
150 !$acc parallel copyin(a1(1:5)) create(c1(1:5)) copyout(b1(1:5))
164 if (b1(1) .ne
. 10) STOP 31
165 if (b1(2) .ne
. 10) STOP 32
166 if (b1(3) .ne
. 10) STOP 33
167 if (b1(4) .ne
. 10) STOP 34
168 if (b1(5) .ne
. 10) STOP 35
175 if (.not
.allocated (a1
)) STOP 10
178 if (.not
.allocated (b1
)) STOP 11
181 if (.not
.allocated (c1
)) STOP 12
187 !$acc parallel copyin(a1(0:4)) create(c1(0:4)) copyout(b1(0:4))
201 if (b1(0) .ne
. 10) STOP 36
202 if (b1(1) .ne
. 10) STOP 37
203 if (b1(2) .ne
. 10) STOP 38
204 if (b1(3) .ne
. 10) STOP 39
205 if (b1(4) .ne
. 10) STOP 40
212 if (.not
.allocated (a1
)) STOP 13
216 !$acc parallel copy(a1(2:3))
221 if (a1(1) .ne
. 10) STOP 41
222 if (a1(2) .ne
. 2) STOP 42
223 if (a1(3) .ne
. 3) STOP 43
224 if (a1(4) .ne
. 10) STOP 44
225 if (a1(5) .ne
. 10) STOP 45