Skip to content

Commit b787559

Browse files
committed
Fix compile of new testcase.
1 parent cf666aa commit b787559

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/tests/unit/send-get/alloc_comp_get_convert_nums.f90

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,20 @@ program get_convert_nums
7878
real(kind=4) , dimension(1:5) :: real_k4
7979
real(kind=8) , dimension(1:5) :: real_k8
8080

81-
type(t), save :: obj[*]
81+
type(t), save, codimension[*] :: obj
8282

8383
associate(me => this_image(), np => num_images())
8484
if (np < 2) error stop 'Can not run with less than 2 images.'
8585

86-
allocate(obj[*]%int_scal_k1, SOURCE=INT(42, 1)) ! allocate syncs here
87-
allocate(obj[*]%int_scal_k4, SOURCE=42) ! allocate syncs here
88-
allocate(obj[*]%int_k1(5), SOURCE=INT([ 5, 4, 3, 2, 1], 1)) ! allocate syncs here
89-
allocate(obj[*]%int_k4(5), SOURCE=[ 5, 4, 3, 2, 1]) ! allocate syncs here
86+
allocate(obj%int_scal_k1, SOURCE=INT(42, 1)) ! allocate syncs here
87+
allocate(obj%int_scal_k4, SOURCE=42) ! allocate syncs here
88+
allocate(obj%int_k1(5), SOURCE=INT([ 5, 4, 3, 2, 1], 1)) ! allocate syncs here
89+
allocate(obj%int_k4(5), SOURCE=[ 5, 4, 3, 2, 1]) ! allocate syncs here
9090

91-
allocate(obj[*]%real_scal_k4, SOURCE=37.042) ! allocate syncs here
92-
allocate(obj[*]%real_scal_k8, SOURCE=REAL(37.042, 8)) ! allocate syncs here
93-
allocate(obj[*]%real_k4(1:5), SOURCE=[ 5.1, 4.2, 3.3, 2.4, 1.5]) ! allocate syncs here
94-
allocate(obj[*]%real_k8(1:5), SOURCE=REAL([ 5.1, 4.2, 3.3, 2.4, 1.5], 8)) ! allocate syncs here
91+
allocate(obj%real_scal_k4, SOURCE=37.042) ! allocate syncs here
92+
allocate(obj%real_scal_k8, SOURCE=REAL(37.042, 8)) ! allocate syncs here
93+
allocate(obj%real_k4(1:5), SOURCE=[ 5.1, 4.2, 3.3, 2.4, 1.5]) ! allocate syncs here
94+
allocate(obj%real_k8(1:5), SOURCE=REAL([ 5.1, 4.2, 3.3, 2.4, 1.5], 8)) ! allocate syncs here
9595

9696
! First check send/copy to self
9797
if (me == 1) then

0 commit comments

Comments
 (0)