mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 13:49:39 +02:00
no message
This commit is contained in:
parent
c75dbfdf0c
commit
1de5ae84d3
30
tests/tbs/tb0412.pp
Normal file
30
tests/tbs/tb0412.pp
Normal file
@ -0,0 +1,30 @@
|
||||
{ %version=1.1 }
|
||||
{$mode objfpc}
|
||||
{$r+}
|
||||
uses
|
||||
sysutils;
|
||||
|
||||
var
|
||||
a : array of longint;
|
||||
|
||||
begin
|
||||
try
|
||||
a[10]:=1;
|
||||
except
|
||||
setlength(a,3);
|
||||
a[0]:=1;
|
||||
a[1]:=1;
|
||||
a[2]:=1;
|
||||
try
|
||||
a[3]:=1;
|
||||
except
|
||||
try
|
||||
a[-1]:=1;
|
||||
except
|
||||
halt(0);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
writeln('Problem with dyn. array range checking');
|
||||
halt(1);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user