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.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [select_4.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Check for overlapping case range diagnostics.
3
!
4
program select_5
5
  integer i
6
  select case(i)
7
  case (20:30) ! { dg-error "overlaps with CASE" }
8
  case (25:) ! { dg-error "overlaps with CASE" }
9
  end select
10
  select case(i)
11
  case (30)  ! { dg-error "overlaps with CASE" }
12
  case (25:) ! { dg-error "overlaps with CASE" }
13
  end select
14
  select case(i)
15
  case (20:30) ! { dg-error "overlaps with CASE" }
16
  case (25) ! { dg-error "overlaps with CASE" }
17
  end select
18
end program select_5

powered by: WebSVN 2.1.0

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