Debian Codegraph @

gcc/testsuite/gfortran.dg/pr88624.f90

raw
1 !{ dg-do compile }
2 !{ dg-options "-fcoarray=lib" }
3
4 ! Check that PR fortran/88624 is fixed.
5 ! Contributed by Modrzejewski <[email protected]>
6 ! Reduced to the essence of the issue.
7
8 program test
9 implicit none
10 integer, dimension(:), allocatable :: x[:]
11 call g(x)
12 contains
13 subroutine g(x)
14 integer, dimension(:), allocatable :: x[:]
15 call g2(x)
16 end subroutine g
17 subroutine g2(x)
18 integer, dimension(:) :: x[*]
19 end subroutine g2
20 end program test
21