re PR fortran/85779 (ICE in gfc_typename, at fortran/misc.c:156)
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr85779_2.f90
blob4cc3c62979c0f4d9b4244338878feae5b65ffa8e
1 ! { dg-do compile }
2 ! PR fortran/85779
3 type(t) function f() result(z) ! { dg-error "is not accessible" }
4 type z ! { dg-error "already has a basic type" }
5 end type ! { dg-error "END FUNCTION statement" }
6 end