tw3841.pp 476 B

1234567891011121314151617181920212223242526
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 3841 }
  3. { Submitted by "Joost v.d. Sluis" on 2005-03-28 }
  4. { e-mail: }
  5. {$mode objfpc}
  6. type TMyClass = Class(TObject)
  7. private
  8. Function GetInte : Integer;
  9. public
  10. property Inte : Integer read GetInte;
  11. end;
  12. var buf : longint;
  13. MyClass : TMyClass;
  14. function TMyClass.GetInte : integer;
  15. begin
  16. Result := 1010;
  17. end;
  18. begin
  19. MyClass.Create;
  20. move(MyClass.inte,buf,sizeof(longint));
  21. end.