summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/whole_file_34.f90
blob: 9b421e004ae1f482a701e0c27fbf5b6e361283d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
!
! PR fortran/48788
!
! Contributed by Zdenek Sojka
!
function foo ()
end function foo
  character(4), external :: foo ! { dg-error "Return type mismatch of function" }
  character(4) :: x
  x = foo ()
END