gcc/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/alloc1.f90

6 lines
141 B
Fortran
Raw Permalink Normal View History

program test_allocated
integer :: i = 4
real(4), allocatable :: x(:)
if (.not. allocated(x)) allocate(x(i))
end program test_allocated