2 ! { dg-options "-std=f95" }
3 ! PR 25093: Check that a PUBLIC function can't be of PRIVATE type
4 ! in Fortran 95; in Fortran 2003 it is allowed (cf. PR fortran/38065)
17 type(t1
) function f1() ! { dg-error "of PRIVATE derived type" }
22 ! { dg-final { cleanup-modules "m1" } }