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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options -fbackslash }
3
! Wide chracter I/O test 4, formatted ISO-8859-1 characters in string
4
! Test case developed by Jerry DeLisle 
5
! Compile with -fbackslash
6
integer, parameter  :: k4 = 4
7
character(kind=1,len=15) :: buffer
8
character(kind=1, len=1) :: c1, c2
9
character(kind=4,len=20) :: str = k4_'X\xF8öABC' ! ISO-8859-1 encoded string
10
buffer = ""
11
write(buffer,'(3a)')':',trim(str),':'
12
if (buffer.ne.':X\xF8öABC: ') call abort
13
str = ""
14
read(buffer,'(3a)') c1,str(1:6),c2
15
if (c1.ne.':') call abort
16
if (str.ne.k4_'X\xF8öAB') call abort
17
if (c2.ne.'C') call abort
18
end

powered by: WebSVN 2.1.0

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