aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/associate_50.f90
blob: 990ec58bffe13833ae53148d74d93f4dd600151e (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR 92780 - this used to ICE instead of being rejected.
! Test case by Gerhard Steinmetz.

program p
  associate (y => p) ! { dg-error "Invalid association target" }
  end associate  ! { dg-error "Expecting END PROGRAM statement" }
end program p