mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 10:28:16 +02:00
25 lines
348 B
ObjectPascal
25 lines
348 B
ObjectPascal
{ %FAIL }
|
|
{ Old file: tbf0148.pp }
|
|
{ crash when setting function result of a declared but not yet implemented function in another function }
|
|
|
|
unit test;
|
|
|
|
interface
|
|
|
|
Function t(a: Byte): byte;
|
|
Function DoT(b: byte): Byte;
|
|
|
|
implementation
|
|
|
|
Function t(a: Byte): Byte;
|
|
var f: byte;
|
|
Begin
|
|
DoT := f;
|
|
End;
|
|
|
|
Function DoT(b: byte): Byte;
|
|
Begin
|
|
End;
|
|
|
|
end.
|