Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray/ptr_comp_5.f08

raw
1 ! { dg-do compile }
2
3 ! Check PR84244 does not ICE anymore.
4
5 program ptr_comp_5
6 integer, target :: dest = 42
7 type t
8 integer, pointer :: p
9 end type
10 type(t) :: o[*]
11
12 o%p => dest
13 contains
14 ! This unused routine is crucial for the ICE.
15 function f(x)
16 type(t), intent(in) ::x
17 end function
18 end program
19