fpc/tests/webtbs/tw9309.pp
2007-07-22 19:44:56 +00:00

25 lines
447 B
ObjectPascal

program openarrayhigh;
{$ifdef FPC}{$mode objfpc}{$h+}{$INTERFACES CORBA}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
uses
{$ifdef FPC}{$ifdef linux}cthreads,{$endif}{$endif}
sysutils;
procedure testproc(const par1: array of string);
var
str1: ansistring;
begin
writeln(high(par1));
flush(output);
str1:= par1[high(par1)];
writeln(str1);
flush(output);
end;
var
str1: ansistring;
begin
str1:= 'abcdefg';
testproc(str1);
end.