Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / bound_resolve_after_error_1.f90
blob35cc2405a8d9138240740407aed9a6e4b9b01e6a
1 ! Testcase for bound check after issued error
2 ! See PR 94192
3 ! { dg-do compile }
4 program bound_for_illegal
6 contains
8 subroutine bnds(a) ! { dg-error "must have a deferred shape or assumed rank" }
9 integer, pointer, intent(in) :: a(1:2)
10 print *,lbound(a)
11 end subroutine bnds
13 end program bound_for_illegal