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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [utf8_2.f03] - Rev 414

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

! { dg-do run }
! { dg-options "-fbackslash" }
! Contributed by Tobias Burnus
program test2
  integer,parameter :: ucs4 = selected_char_kind("iso_10646")
  character(1,ucs4),parameter :: nen=char(int(z'5e74'),ucs4), & !year
    gatsu=char(int(z'6708'),kind=ucs4), & !month
    nichi=char(int(z'65e5'),kind=ucs4) !day
  character(25,ucs4) :: string
  open(10, encoding="utf-8", status="scratch")
  write(10,1) 2008,nen,8,gatsu,10,nichi
1 format(i0,a,i0,a,i0,a)
  rewind(10)
  read(10,'(a)') string
  if (string /= ucs4_"2008\u5e748\u670810\u65e5") call abort
end program test2

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.