fpc/tests/tbf/tb0239.pp
nickysn dcc2354760 * disallow 64-bit property index specifiers on 64-bit CPUs, since they were not
handled correctly there anyway (they were silently truncated to 32-bit)

git-svn-id: trunk@27061 -
2014-03-09 21:05:53 +00:00

19 lines
302 B
ObjectPascal

{ %FAIL }
program tb0239;
{$MODE objfpc}
type
TMyClass = class
function GetMyProperty(Index: Integer): Integer;
property MyProperty: Integer index 10000000000000000 read GetMyProperty;
end;
function TMyClass.GetMyProperty(Index: Integer): Integer;
begin
Result := 10;
end;
begin
end.