summaryrefslogtreecommitdiff
path: root/tests/test/tparray24.pp
blob: 03af9a8fbd1f4e3b728ccebea58401442b2edbd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
type
  tstr = string[2];
  tarr = bitpacked array[0..20] of tstr;

procedure p(var a: tstr);
begin
  a := 'ab';
end;

var
  a: tarr;
begin
  a[0]:='gh';
  p(a[0]);
  if (a[0]<>'ab') then
    halt(1);
end.