summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw3578.pp
blob: 709d20bebd24115bfe6299cac86a8420b0a4bb50 (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
26
27
28
29
{ Source provided for Free Pascal Bug Report 3578 }
{ Submitted by "Martin Schreiber" on  2005-01-21 }
{ e-mail:  }
program project1;

{$mode objfpc}{$H+}
uses
  Classes;

type
 widestringarty = array of widestring;

procedure proc(const ar1,ar2: array of widestring);
begin
end;

function getarray: widestringarty;
begin
 result:= nil;
end;

var
 ar1,ar2: widestringarty;
begin
 proc(ar1,ar2);            //ok
 proc(ar1,getarray);       //ok
 proc(getarray,ar2);       //ok
 proc(getarray,getarray);  //Internal error 9999
end.