123456789101112131415161718192021222324252627 |
- program tpushpop2;
- type
- {$PackRecords 1}
- TTest1 = record
- b: Byte;
- l: LongInt;
- end;
- {$Push}
- {$PackRecords 4}
- TTest2 = record
- b: Byte;
- l: LongInt;
- end;
- {$Pop}
- TTest3 = record
- b: Byte;
- l: LongInt;
- end;
- begin
- if SizeOf(TTest1) <> SizeOf(TTest3) then
- Halt(1);
- if SizeOf(TTest1) = SizeOf(TTest2) then
- Halt(2);
- Writeln('ok');
- end.
|