Skip to content

Commit

Permalink
Subroutine: Fix nested array argument declaration in tests
Browse files Browse the repository at this point in the history
This happens to have triggered but seems actually wrong: If we
redeclare the argument in the member and use it as an array, it
cannot be declared scalar.
  • Loading branch information
mlange05 committed Aug 28, 2023
1 parent 7129658 commit a7b778f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_subroutine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def test_subroutine_rescope_symbols(frontend):
subroutine nested_routine(a, n)
use some_mod, only: ext2
integer, parameter :: jpim = selected_int_kind(4)
integer, intent(inout) :: a
integer, intent(inout) :: a(n)
integer, intent(in) :: n
integer(kind=jpim) :: j
Expand Down Expand Up @@ -1418,7 +1418,7 @@ def test_subroutine_rescope_clone(frontend):
subroutine nested_routine(a, n)
use some_mod, only: ext2
integer, intent(inout) :: a
integer, intent(inout) :: a(n)
integer, intent(in) :: n
integer :: j
Expand Down

0 comments on commit a7b778f

Please sign in to comment.