fpc/tests/webtbs/tw12575.pp
Jonas Maebe dbbd75ca47 * fixed setting EInoutError.ErrorCode (mantis #12575, thanks to
Bart Broersma for the analysis)

git-svn-id: trunk@12037 -
2008-11-09 09:46:47 +00:00

18 lines
211 B
ObjectPascal

{$mode objfpc}
PROGRAM Test;
USES SysUtils;
VAR
t : Text;
BEGIN
Assign(t, 'blah.txt');
TRY
Close(t);
EXCEPT
ON e: EInOutError DO
if (e.ErrorCode <> 103) then
halt(1);
END;
END.