mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:59:15 +02:00
* fix for Mantis #35965: correct alignment also for the class info used to retrieve the unit name
+ added test git-svn-id: trunk@42697 -
This commit is contained in:
parent
aa0422b2ed
commit
10af6fe2fb
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -17787,6 +17787,7 @@ tests/webtbs/tw35937.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw3594.pp svneol=native#text/plain
|
tests/webtbs/tw3594.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw3595.pp svneol=native#text/plain
|
tests/webtbs/tw3595.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw35953.pp svneol=native#text/pascal
|
tests/webtbs/tw35953.pp svneol=native#text/pascal
|
||||||
|
tests/webtbs/tw35965.pp svneol=native#text/pascal
|
||||||
tests/webtbs/tw3612.pp svneol=native#text/plain
|
tests/webtbs/tw3612.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw3617.pp svneol=native#text/plain
|
tests/webtbs/tw3617.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw3619.pp svneol=native#text/plain
|
tests/webtbs/tw3619.pp svneol=native#text/plain
|
||||||
|
@ -980,10 +980,17 @@
|
|||||||
type
|
type
|
||||||
TClassTypeInfo = {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}packed{$endif}record
|
TClassTypeInfo = {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}packed{$endif}record
|
||||||
Attributes: Pointer;
|
Attributes: Pointer;
|
||||||
ClassType: TClass;
|
case TTypeKind of
|
||||||
ParentInfo: Pointer;
|
tkClass: (
|
||||||
PropCount: SmallInt;
|
ClassType: TClass;
|
||||||
UnitName: ShortString;
|
ParentInfo: Pointer;
|
||||||
|
PropCount: SmallInt;
|
||||||
|
UnitName: ShortString;
|
||||||
|
);
|
||||||
|
{ include for proper alignment }
|
||||||
|
tkInt64: (
|
||||||
|
Dummy: Int64;
|
||||||
|
);
|
||||||
end;
|
end;
|
||||||
PClassTypeInfo = ^TClassTypeInfo;
|
PClassTypeInfo = ^TClassTypeInfo;
|
||||||
var
|
var
|
||||||
|
6
tests/webtbs/tw35965.pp
Normal file
6
tests/webtbs/tw35965.pp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
program tw35965;
|
||||||
|
|
||||||
|
begin
|
||||||
|
if TObject.UnitName <> 'System' then
|
||||||
|
Halt(1);
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user