Skip to content

Commit

Permalink
Subroutine: Check ProcedureDeclaration in external_stmt test
Browse files Browse the repository at this point in the history
This re-enables the actual check on the declaration symbols.
  • Loading branch information
mlange05 committed Nov 29, 2024
1 parent 3aaef08 commit fa42d02
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions loki/tests/test_subroutine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,7 @@ def test_external_stmt(tmp_path, frontend):
routine = source['routine_external_stmt']
assert len(routine.arguments) == 8

for decl in FindNodes(ir.VariableDeclaration).visit(routine.spec):
# Skip local variables
if decl.symbols[0].name in ('invar', 'outvar', 'tmp'):
continue
for decl in FindNodes(ir.ProcedureDeclaration).visit(routine.spec):
# Is the EXTERNAL attribute set?
assert decl.external
for v in decl.symbols:
Expand Down

0 comments on commit fa42d02

Please sign in to comment.