URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [do_check_5.f90] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
!
! PR/fortran 38432
! DO-loop compile-time checks
!
implicit none
integer :: i
real :: r
do i = 1, 0 ! { dg-warning "executed zero times" }
end do
do i = 1, -1, 1 ! { dg-warning "executed zero times" }
end do
do i = 1, 2, -1 ! { dg-warning "executed zero times" }
end do
do i = 1, 2, 0 ! { dg-error "cannot be zero" }
end do
do r = 1, 0 ! { dg-warning "must be integer|executed zero times" }
end do
do r = 1, -1, 1 ! { dg-warning "must be integer|executed zero times" }
end do
do r = 1, 2, -1 ! { dg-warning "must be integer|executed zero times" }
end do
do r = 1, 2, 0 ! { dg-error "must be integer|cannot be zero" }
end do
end
Go to most recent revision | Compare with Previous | Blame | View Log