summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/initialization_8.f90
blob: fdc418342783a665cba865161aa4613c5ff21728 (plain)
1
2
3
4
5
6
7
! { dg-do compile }
! PR fortran/31639 -- ICE on invalid initialization expression

function f()
  integer :: i = irand()     ! { dg-error "not permitted in an initialization expression" }
  f = i
end function