summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/do_pointer_1.f90
blob: 548177acc0a071d40878c8eac2563b92905ddac9 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! PR 30869 - pointer loop variables were wrongly rejected.
program main
  integer, pointer :: i
  allocate (i)
  do i=1,10
  end do
  deallocate (i)
end program main