Skip to content

Commit

Permalink
#2642 Add test about unkown parent type not being declared in the mod…
Browse files Browse the repository at this point in the history
…ule.
  • Loading branch information
JulienRemy committed Dec 2, 2024
1 parent 0923123 commit 18679fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/psyclone/tests/psyir/frontend/fparser2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2606,6 +2606,8 @@ def test_structures(fortran_reader, fortran_writer):
" type, extends(kernel_type), public :: my_type\n"
" integer, public :: i = 1\n"
" end type my_type\n" in result)
# Check that kernel_type is not declared in the module
assert ":: kernel_type" not in result

# type that contains a procedure (StructureType)
test_code = (
Expand Down

0 comments on commit 18679fa

Please sign in to comment.