URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
! { dg-do run }
|
! { dg-do run }
|
! PR24489 Assure that read does not go past the end of record. The width of
|
! PR24489 Assure that read does not go past the end of record. The width of
|
! the format specifier is 8, but the internal unit record length is 4 so only
|
! the format specifier is 8, but the internal unit record length is 4 so only
|
! the first 4 characters should be read.
|
! the first 4 characters should be read.
|
! Contributed by Jerry DeLisle .
|
! Contributed by Jerry DeLisle .
|
program pr24489
|
program pr24489
|
character*4, dimension(8) :: abuf = (/"0123","4567","89AB","CDEF", &
|
character*4, dimension(8) :: abuf = (/"0123","4567","89AB","CDEF", &
|
"0123","4567","89AB","CDEF"/)
|
"0123","4567","89AB","CDEF"/)
|
character*4, dimension(2,4) :: buf
|
character*4, dimension(2,4) :: buf
|
character*8 :: a
|
character*8 :: a
|
equivalence (buf,abuf)
|
equivalence (buf,abuf)
|
read(buf, '(a8)') a
|
read(buf, '(a8)') a
|
if (a.ne.'0123') call abort()
|
if (a.ne.'0123') call abort()
|
end program pr24489
|
end program pr24489
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.