fpc/tests/webtbs/tw34232.pp
florian b4eb1780ad * added test, issue is fixed by r48758 already
git-svn-id: trunk@49075 -
2021-03-28 21:10:13 +00:00

17 lines
364 B
ObjectPascal

program Project1;
{$mode objfpc}{$H+}
type
generic TTest<TKey, TValue> = packed object
type
TPair = packed record
key: TKey;
value: TValue;
end;
TPairSizeEquivalent = packed array[1..sizeof(TPair)] of byte;
end;
TTestStringString = specialize TTest<string, string>;
begin
writeln(sizeof(TTestStringString.TPairSizeEquivalent));
end.