fpc/tests/webtbs/tw12685.pp
Jonas Maebe 3d25478436 * fixed writing memory references on ppc when there is only an offset
(mantis #12685 and also the error message noted in mantis #12576,
     although in case of the latter it's only a symptom of another bug)

git-svn-id: trunk@12199 -
2008-11-22 15:13:16 +00:00

24 lines
459 B
ObjectPascal

{ %norun }
program BuggyProgram;
const
SE_SysEvtMask = $144;
SE_SysEvtMask2 = $14422241;
type
intPtr = ^integer;
function GetSystemEventMask: INTEGER;
begin
GetSystemEventMask := intPtr(SE_SysEvtMask)^;
GetSystemEventMask := intPtr(SE_SysEvtMask2)^;
end;
procedure StoreSystemEventMask (theMask: INTEGER);
begin
intPtr(SE_SysEvtMask)^ := theMask;
intPtr(SE_SysEvtMask2)^ := theMask;
end;
begin
end.