Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/do_subscript_3.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
! { dg-do compile } ! PR fortran/91424 ! Check that only one warning is issued inside blocks, and that ! warnings are also issued for contained subroutines. program main real :: a(5) block integer :: j do j=0, 5 ! { dg-warning "out of bounds" } a(j) = 2. ! { dg-warning "out of bounds" } end do end block call x contains subroutine x integer :: i do i=1,6 ! { dg-warning "out of bounds" } a(i) = 2. ! { dg-warning "out of bounds" } end do end subroutine x end program main