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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [widechar_select_2.f90] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }

  character(kind=1,len=20) :: s1
  character(kind=4,len=20) :: s4

  select case (s1)
    case ("":4_"foo") ! { dg-error "must be of kind" }
      test = 1
    case (4_"gee") ! { dg-error "must be of kind" }
      test = 1
    case ("bar")
      test = 1
    case default
      test = 4
  end select

  select case (s4)
    case ("":4_"foo") ! { dg-error "must be of kind" }
      test = 1
    case (4_"gee")
      test = 1
    case ("bar") ! { dg-error "must be of kind" }
      test = 1
    case default
      test = 4
  end select

  select case (s4)
    case (4_"foo":4_"bar")
      test = 1
    case (4_"foo":4_"gee") ! { dg-error "overlaps with CASE label" }
      test = 1
    case (4_"foo") ! { dg-error "overlaps with CASE label" }
      test = 1
  end select

end

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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