Skip to content

Commit 5cab5aa

Browse files
committed
eliminated an "array temporary" warning in one of the unit tests on intel-debug.
1 parent f10d085 commit 5cab5aa

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/tests/jf_test_18.F90

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ subroutine test_18(error_cnt)
3030
integer :: ival
3131
logical :: found
3232
logical,dimension(4) :: ok
33+
integer,dimension(4) :: iresult
3334

3435
write(error_unit,'(A)') ''
3536
write(error_unit,'(A)') '================================='
@@ -53,19 +54,23 @@ subroutine test_18(error_cnt)
5354

5455
call json%initialize(trailing_spaces_significant=.true.,&
5556
case_sensitive_keys=.true.)
56-
call go([1,2,3,4])
57+
iresult = [1,2,3,4]
58+
call go(iresult)
5759

5860
call json%initialize(trailing_spaces_significant=.false.,&
5961
case_sensitive_keys=.true.)
60-
call go([1,2,1,2])
62+
iresult = [1,2,1,2]
63+
call go(iresult)
6164

6265
call json%initialize(trailing_spaces_significant=.true.,&
6366
case_sensitive_keys=.false.)
64-
call go([1,1,3,3])
67+
iresult = [1,1,3,3]
68+
call go(iresult)
6569

6670
call json%initialize(trailing_spaces_significant=.false.,&
6771
case_sensitive_keys=.false.)
68-
call go([1,1,1,1])
72+
iresult = [1,1,1,1]
73+
call go(iresult)
6974

7075
!cleanup:
7176
call json%destroy(p)

0 commit comments

Comments
 (0)