OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [select_2.f90] - Blame information for rev 315

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
!  Simple test program to see if gfortran eliminates the 'case (3:2)'
3
!  statement.  This is an unreachable CASE because the range is empty.
4
!
5
program select_3
6
  integer i
7
  do i = 1, 4
8
     select case(i)
9
     case (1)
10
       if (i /= 1) call abort
11
     case (3:2)
12
       call abort
13
     case (4)
14
       if (i /= 4) call abort
15
     case default
16
       if (i /= 2 .and. i /= 3) call abort
17
     end select
18
  end do
19
end program select_3

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.