aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr85779_2.f90
blob: 4cc3c62979c0f4d9b4244338878feae5b65ffa8e (plain)
1
2
3
4
5
6
7
! { dg-do compile }
! PR fortran/85779
type(t) function f() result(z)   ! { dg-error "is not accessible" }
   type z                        ! { dg-error "already has a basic type" }
   end type                      ! { dg-error "END FUNCTION statement" }
end