aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/function_types_1.f90
blob: f56884f93ae10217b76e1d939e2d356a67a7cd50 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
! Tests the fix for PR34431 in which function TYPEs that were
! USE associated would cause an error.
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
module bar
contains
  type(non_exist) function func2() ! { dg-error "not accessible" }
  end function func2
end module bar