fpc/tests/webtbs/tw3348.pp
2008-12-29 11:18:26 +00:00

28 lines
494 B
ObjectPascal

{ %cpu=i386,powerpc}
{ %target=linux,win32,go32v2,os2,beos,haiku,morphos }
{ %opt=-ghcl }
{ Source provided for Free Pascal Bug Report 3348 }
{ Submitted by "Martin Schreiber" on 2004-10-10 }
{ e-mail: }
program project1;
{$mode objfpc}{$H+}
// compile with -gh -gc -gl
uses
Classes;
type
integerarty = array of integer;
procedure proc(ar: array of integer);
begin
end;
var
ar1: integerarty;
begin
HaltOnNotReleased := true;
ar1:= nil;
proc(ar1); // checkpointer error (nil!)
end.