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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [select_5.f90] - Blame information for rev 193

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! Test mismatched type kinds in a select statement.
3
program select_5
4
  integer(kind=1) i          ! kind = 1, -128 <= i < 127
5
  do i = 1, 3
6
    select case (i)
7
    case (1_4)         ! kind = 4, reachable
8
      if (i /=  1_4) call abort
9
    case (2_8)         ! kind = 8, reachable
10
      if (i /= 2_8) call abort
11
    case (200)         ! kind = 4, unreachable because of range of i
12
      call abort
13
    case default
14
      if (i /= 3) call abort
15
    end select
16
  end do
17
end program select_5

powered by: WebSVN 2.1.0

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