tw2721.pp 484 B

123456789101112131415161718192021222324252627282930
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 2721 }
  3. { Submitted by "marcov" on 2003-10-07 }
  4. { e-mail: }
  5. {$mode Delphi}
  6. type
  7. TIntfPersistent = class
  8. public
  9. function _Release: Integer; virtual; cdecl;
  10. end;
  11. t2 = class(Tintfpersistent)
  12. public
  13. // Different calling convention
  14. function _Release: Integer; override; stdcall;
  15. end;
  16. function TIntfPersistent._Release: Integer;
  17. begin
  18. end;
  19. function t2._Release: Integer;
  20. begin
  21. end;
  22. begin
  23. end.