summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw4763.pp
blob: 68aaeca25e04fe7959165f74217119fd27af3bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{$mode objfpc}{H+}
program test_widestrings;
var
  W: WideString;
begin
  W := '123456';
  if Length(W)<>6 then
    begin
      WriteLn('Test1 Failed, it''s ', Length(W));
      halt(1);
    end
  else
    WriteLn('Test1 Passed');

  SetLength(W, 6);
  if Length(W)<>6 then
    begin
      WriteLn('Test2 Failed, it''s ', Length(W));
      halt(1);
    end
  else
    WriteLn('Test2 Passed');
end.