Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d730ed96
Commit
d730ed96
authored
Jul 25, 1998
by
Dave Love
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New test.
From-SVN: r21371
parent
b8b1a3c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
gcc/testsuite/g77.f-torture/execute/io0.f
+38
-0
No files found.
gcc/testsuite/g77.f-torture/execute/io0.f
0 → 100644
View file @
d730ed96
* Preliminary tests for a few things in the i/o library.
* Thrown together by Dave Love not from specific bug reports --
* other ideas welcome.
character *(*) fmt
parameter (fmt='(1x,i3,f5.1)')
* Scratch file makes sure we can use one and avoids dealing with
* explicit i/o in the testsuite.
open(90, status='scratch') ! try a biggish unit number
write(90, '()') ! extra record for interest
* Formatted i/o can go wild (endless loop AFAIR) if we're wrongly
* assuming an ANSI sprintf.
write(90, fmt) 123, 123.0
backspace 90 ! backspace problems reported on DOSish systems
read(90, fmt) i, r
endfile 90
if (i/=123 .or. nint(r)/=123) call abort
rewind 90 ! make sure we can rewind too
read(90, '()')
read(90, fmt) i, r
if (i/=123 .or. nint(r)/=123) call abort
close(90)
* Make sure we can do unformatted i/o OK. This might be
* problematic on DOS-like systems if we've done an fopen in text
* mode, not binary.
open(90, status='scratch', access='direct', form='unformatted',
+ recl=8)
write(90, rec=1) 123, 123.0
read(90, rec=1) i, r
if (i/=123 .or. nint(r)/=123) call abort
close(90)
open(90, status='scratch', form='unformatted')
write(90) 123, 123.0
backspace 90
read(90) i, r
if (i/=123 .or. nint(r)/=123) call abort
close(90)
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment