summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/select_1.f90
blob: 4d9d597f7948001fe280eab6f3e8f5db8978c094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do run }
!  Simple test for SELECT CASE
!
program select_2
  integer i
  do i = 1, 5
     select case(i)
     case (1)
       if (i /= 1) call abort
     case (2:3)
       if (i /= 2 .and. i /= 3) call abort
     case (4)
       if (i /= 4) call abort
     case default
       if (i /= 5) call abort
     end select
  end do
end program select_2