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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [widechar_IO_1.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! Wide chracter I/O test 1, formatted and mixed kind
3
! Test case developed by Jerry DeLisle 
4
program test1
5
  integer, parameter :: k4 = 4
6
  character(len=10,kind=4) :: wide
7
  character(len=10,kind=1) :: thin
8
  character(kind=1,len=25) :: buffer
9
  wide=k4_"Goodbye!"
10
  thin="Hello!"
11
  write(buffer, '(a)') wide
12
  if (buffer /= "Goodbye!") call abort
13
  open(10, form="formatted", access="stream", status="scratch")
14
  write(10, '(a)') thin
15
  rewind(10)
16
  read(10, '(a)') wide
17
  if (wide /= k4_"Hello!") call abort
18
  write(buffer,*) thin, ">",wide,"<"
19
  if (buffer /= " Hello!    >Hello!    <") call abort
20
end program test1

powered by: WebSVN 2.1.0

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