fpc/tests/tbf/tb0200.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

19 lines
301 B
ObjectPascal

{%NORUN}
{%FAIL}
program tb0200;
{$H-}
{TP rejects this code both with range checking off and on. However,
we allow indexing arrays out of bounds with range checks off, so
we best reject this then only with range checking on.}
{$Q+,R+}
var a:string;
c:char;
begin
a:='';
c:=a[257];
end.