summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw3348.pp
blob: 4e2204875c39ad701a0b2b0975deabb999ac0762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ %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.