fpc/tests/tbs/tb0540.pp
daniel dafc044cea * tb0201 should now succeed, move & rename it to tbs/tb0540
* Add %FAIL & %NORUN to tb0200.

git-svn-id: trunk@7826 -
2007-06-26 17:43:41 +00:00

30 lines
326 B
ObjectPascal

program tb0540;
{$mode objfpc}
{$H-}
{$Q+,R+}
uses sysutils;
var a:string;
b:string[63];
c:char;
w:word;
begin
a:='';
b:='';
w:=257;
try
c:=a[w];
writeln('string[255] failure');
halt(1);
except
end;
try
c:=b[w];
writeln('string[63] failure');
halt(2);
except
end;
end.