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

Subversion Repositories openrisc

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

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

! { dg-do run }
!
! Check that runtime result values of SELECTED_CHAR_KIND agree with
! front-end simplification results.
!
  implicit none
  character(len=20) :: s

  s = "ascii"
  if (selected_char_kind(s) /= selected_char_kind("ascii")) call abort

  s = "default"
  if (selected_char_kind(s) /= selected_char_kind("default")) call abort

  s = "iso_10646"
  if (selected_char_kind(s) /= selected_char_kind("iso_10646")) call abort

  s = ""
  if (selected_char_kind(s) /= selected_char_kind("")) call abort

  s = "invalid"
  if (selected_char_kind(s) /= selected_char_kind("invalid")) call abort

end

Go to most recent revision | 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.