summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/uprec7.pp
blob: d2c486c26d7790476f9f2cc9920f407e7d969181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ from GPC testsuite (martin3v.pas) }

{$bitpacking on}
Unit uprec7;
Interface

Type TRecord = packed Record
                 a, b, c, d, e, f, g, h, i: Boolean
               end;

Var ARecord:TRecord = (a: False; b: True; c: True; d: True; e: False;
                       f: True; g: False; h: False; i: True);
    s: Integer;

Implementation

Begin
  s := SizeOf (TRecord)
end.