OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.dg/] [select_1.f90] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
! { dg-do run }
2
!  Simple test for SELECT CASE
3
!
4
program select_2
5
  integer i
6
  do i = 1, 5
7
     select case(i)
8
     case (1)
9
       if (i /= 1) call abort
10
     case (2:3)
11
       if (i /= 2 .and. i /= 3) call abort
12
     case (4)
13
       if (i /= 4) call abort
14
     case default
15
       if (i /= 5) call abort
16
     end select
17
  end do
18
end program select_2

powered by: WebSVN 2.1.0

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