summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tunistr2.pp
blob: 8e9c1824c38fcc0fe9b6fe104054ac2ae714b3d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{$ifdef UNIX}
uses
  cwstring;
{$endif UNIX}

var
  i : longint;
  w,w2 : unicodestring;
  a : ansistring;

begin
  setlength(w,1000);
  for i:=1 to 1000 do
    w[i]:=widechar(i);
  for i:=1 to 10 do
    begin
      a:=w;
      w2:=a;
    end;
  writeln('ok');
end.