reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / gfortran.dg / used_types_14.f90
blobbc166a8d55e7af39226ac0495b16ba5f30c92c4a
1 ! { dg-do compile }
2 ! Tests the fix for PR30531 in which the interface derived types
3 ! was not being associated.
5 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
7 module foo_type_mod
8 type foo_type
9 integer, allocatable :: md(:)
10 end type foo_type
11 end module foo_type_mod
13 module foo_mod
15 interface
16 subroutine foo_initvg(foo_a)
17 use foo_type_mod
18 Type(foo_type), intent(out) :: foo_a
19 end subroutine foo_initvg
20 end interface
22 contains
24 subroutine foo_ext(foo_a)
25 use foo_type_mod
26 Type(foo_type) :: foo_a
28 call foo_initvg(foo_a)
29 end subroutine foo_ext
31 end module foo_mod