URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do run }
|
! { dg-do run }
|
! PR25598 Error on repeated backspaces.
|
! PR25598 Error on repeated backspaces.
|
! Derived from example given in PR by Dale Ranta
|
! Derived from example given in PR by Dale Ranta
|
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
integer data
|
integer data
|
data=-1
|
data=-1
|
open(unit=11,status='scratch',form='unformatted')
|
open(unit=11,status='scratch',form='unformatted')
|
write(11)data
|
write(11)data
|
read(11,end= 1000 )data
|
read(11,end= 1000 )data
|
call abort()
|
call abort()
|
1000 continue
|
1000 continue
|
backspace 11
|
backspace 11
|
backspace 11
|
backspace 11
|
read(11,end= 1001 )data
|
read(11,end= 1001 )data
|
1001 continue
|
1001 continue
|
if (data.ne.-1) call abort
|
if (data.ne.-1) call abort
|
close(11)
|
close(11)
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.