fpc/tests/webtbs/tw35136.pp
marco 626c2b52c0 # revisions: 40850,41429,43188,43281,43282,43283,43801
git-svn-id: branches/fixes_3_2@44301 -
2020-03-14 16:08:36 +00:00

17 lines
403 B
ObjectPascal

{ %opt=-Miso }
program p;
var f: text;
begin
rewrite(f);
f^ := 'a';
put(f);
reset(f);
if eof(f) then writeln('premature eof');
writeln(f^);
if eof(f) then writeln('premature eof');
writeln(f^);
if eof(f) then writeln('premature eof');
get(f);
if eof(f) then writeln('eof correctly set') else begin writeln('eof should be set, but isn''t'); halt(1); end;
end.