gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / dummy_procedure_5.f90
blobcb0e7c04d0e50164c2d81364711d954a68b186e8
1 ! { dg-do compile }
3 ! PR 50517: gfortran must detect that actual argument type is different from dummy argument type (r178939)
5 ! Contributed by Vittorio Zecca <zeccav@gmail.com>
7 program main
9 type t
10 integer g
11 end type
13 type u
14 integer g
15 end type
17 type(u), external :: ufunc
18 call sub(ufunc) ! { dg-error "Type mismatch in function result" }
20 contains
22 subroutine sub(tfunc)
23 type(t), external :: tfunc
24 end subroutine
26 end program