mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:09:20 +02:00
* Improve test.
git-svn-id: trunk@7824 -
This commit is contained in:
parent
eef2d4a1df
commit
9eccba45e9
@ -1,8 +1,11 @@
|
|||||||
program tb0200;
|
program tb0201;
|
||||||
|
|
||||||
|
{$mode objfpc}
|
||||||
{$H-}
|
{$H-}
|
||||||
{$Q+,R+}
|
{$Q+,R+}
|
||||||
|
|
||||||
|
uses sysutils;
|
||||||
|
|
||||||
var a:string;
|
var a:string;
|
||||||
b:string[63];
|
b:string[63];
|
||||||
c:char;
|
c:char;
|
||||||
@ -12,6 +15,16 @@ begin
|
|||||||
a:='';
|
a:='';
|
||||||
b:='';
|
b:='';
|
||||||
w:=257;
|
w:=257;
|
||||||
|
try
|
||||||
c:=a[w];
|
c:=a[w];
|
||||||
|
writeln('string[255] failure');
|
||||||
|
halt(1);
|
||||||
|
except
|
||||||
|
end;
|
||||||
|
try
|
||||||
c:=b[w];
|
c:=b[w];
|
||||||
|
writeln('string[63] failure');
|
||||||
|
halt(2);
|
||||||
|
except
|
||||||
|
end;
|
||||||
end.
|
end.
|
Loading…
Reference in New Issue
Block a user