tb0024.pp 348 B

123456789101112131415161718192021222324
  1. { %FAIL }
  2. { Old file: tbf0148.pp }
  3. { crash when setting function result of a declared but not yet implemented function in another function }
  4. unit test;
  5. interface
  6. Function t(a: Byte): byte;
  7. Function DoT(b: byte): Byte;
  8. implementation
  9. Function t(a: Byte): Byte;
  10. var f: byte;
  11. Begin
  12. DoT := f;
  13. End;
  14. Function DoT(b: byte): Byte;
  15. Begin
  16. End;
  17. end.