OSDN Git Service

2008-02-21 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / initialization_8.f90
1 ! { dg-do compile }
2 ! PR fortran/31639 -- ICE on invalid initialization expression
3
4 function f()
5   integer :: i = irand()     ! { dg-error "not permitted in an initialization expression" }
6   f = i
7 end function