fpc/tests/webtbs/tw2159.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

32 lines
531 B
ObjectPascal

{ %version=1.1 }
{ Source provided for Free Pascal Bug Report 2159 }
{ Submitted by "Yakov Sudeikin" on 2002-10-03 }
{ e-mail: yashka@exebook.com }
{$ifdef fpc}{$mode objfpc}{$endif}
var
a,b,c: array of string;
begin
setlength(a, 2);
a[0] := 'asd';
a[1] := 'qwe';
b := copy(a);
c := copy(a, 1, 1);
if b[0]<>'asd' then
begin
writeln('Error 1');
halt(1);
end;
if b[1]<>'qwe' then
begin
writeln('Error 2');
halt(1);
end;
if c[0]<>'qwe' then
begin
writeln('Error 3');
halt(1);
end;
end.