pascalabcnet/TestSuite/sizeof1.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

13 lines
320 B
ObjectPascal

type TRec = record
a: integer;
b: real;
c: char;
end;
begin
assert(sizeof(integer)=4);
assert(sizeof(real)=8);
assert(sizeof(char)=2);
assert(sizeof(pointer)=System.Runtime.InteropServices.Marshal.SizeOf(typeof(pointer)));
assert(sizeof(TRec)=System.Runtime.InteropServices.Marshal.SizeOf(typeof(TRec)));
end.