URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do run }
|
! { dg-do run }
|
! Short test program with a CASE statement that uses a range.
|
! Short test program with a CASE statement that uses a range.
|
!
|
!
|
program select_4
|
program select_4
|
integer i
|
integer i
|
do i = 1, 34, 4
|
do i = 1, 34, 4
|
select case(i)
|
select case(i)
|
case (:5)
|
case (:5)
|
if (i /= 1 .and. i /= 5) call abort
|
if (i /= 1 .and. i /= 5) call abort
|
case (13:21)
|
case (13:21)
|
if (i /= 13 .and. i /= 17 .and. i /= 21) call abort
|
if (i /= 13 .and. i /= 17 .and. i /= 21) call abort
|
case (29:)
|
case (29:)
|
if (i /= 29 .and. i /= 33) call abort
|
if (i /= 29 .and. i /= 33) call abort
|
case default
|
case default
|
if (i /= 9 .and. i /= 25) call abort
|
if (i /= 9 .and. i /= 25) call abort
|
end select
|
end select
|
end do
|
end do
|
end program select_4
|
end program select_4
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.