fpc/tests/webtbs/tw37154.pp
florian 50c48349d5 * check properly for i/o errors in the iso read helpers, resolves #37154
* CheckRead checks if reading caused an I/O error and returns false in this case

git-svn-id: trunk@45635 -
2020-06-10 20:47:58 +00:00

12 lines
273 B
ObjectPascal

{ %RESULT=6 }
{$mode ISO}
program isoModeReadingNumbers(input, output);
var
i: integer;
begin
{ we cannot call the executable with <&- >&- while running the test suite,
so render the file handle manually illegal }
Textrec(input).handle:=$1234;
readLn(i);
end.