Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fortran array syntax not recognized #2721

Open
hbrunie opened this issue Sep 25, 2024 · 0 comments
Open

Fortran array syntax not recognized #2721

hbrunie opened this issue Sep 25, 2024 · 0 comments

Comments

@hbrunie
Copy link
Collaborator

hbrunie commented Sep 25, 2024

@pytest.mark.xfail
def test_psyclone_special_array_notation():
    code = """subroutine foo(a, n)
  integer :: n
  real*8, dimension(5) :: a

  a = (/2, 3, 4, 1/)

end subroutine foo\n"""
    reader = FortranReader()
    psyir_tree: Node = reader.psyir_from_source(code)
    assert len(psyir_tree.walk(CodeBlock)) == 0, psyir_tree.walk(CodeBlock)[
        0
    ].debug_string()
    writer = FortranWriter()
    output = writer(psyir_tree)
    assert code == output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants