Debian Codegraph @

gcc/testsuite/gm2/isolib/run/pass/testrestline3.mod

raw
1 MODULE testrestline3 ;
2
3 IMPORT SeqFile, TextIO ;
4
5 VAR
6 chan : SeqFile.ChanId ;
7 line : ARRAY [0..5] OF CHAR ;
8 results : SeqFile.OpenResults ;
9 BEGIN
10 SeqFile.OpenWrite (chan, "test.input", SeqFile.write, results) ;
11 TextIO.WriteString (chan, "a line of text exceeding 6 chars") ;
12
13 (* Now see if we can read the first line. *)
14 SeqFile.OpenRead (chan, "test.input", SeqFile.read, results) ;
15 TextIO.ReadRestLine (chan, line)
16 END testrestline3.