lazarus/components/PascalScript/Samples/Import/bytearray.rops
martin b65dc1ef59 Adding PascalScript from REM Objects
git-svn-id: trunk@38401 -
2012-08-27 11:02:51 +00:00

14 lines
306 B
Plaintext

Program IFSTest;
type
TByteArray = array of byte;
var
x: TByteARray;
Begin
try
x[0] := 1;
// will cause an runtime error (Out Of Record Fields Range)
writeln('Not supposed to be here');
except
Writeln('Error, which is ok since we accessed a field outside it''s bounds');
end;
End.