fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_8.f90
blobfdc418342783a665cba865161aa4613c5ff21728
1 ! { dg-do compile }
2 ! PR fortran/31639 -- ICE on invalid initialization expression
4 function f()
5 integer :: i = irand() ! { dg-error "not permitted in an initialization expression" }
6 f = i
7 end function