aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/function_kinds_5.f90
blob: e48484ec30dc212705fc023c18820ac2f9f22b3d (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! Tests the fix for PR34471 in which function KINDs that were
! USE associated would cause an error.  This checks a regression
! caused by an intermediate version of the patch.
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
real (bad_kind(0d0)) function foo () ! { dg-error "must be an intrinsic function" }
  foo = real (kind (foo))
end function