mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 18:47:54 +02:00
30 lines
262 B
ObjectPascal
30 lines
262 B
ObjectPascal
{ %fail }
|
|
{ %OPT=-vn -Sen }
|
|
{$mode objfpc}
|
|
program Project1;
|
|
|
|
type
|
|
|
|
TObj = Class
|
|
|
|
procedure proc1;
|
|
procedure proc2; inline;
|
|
|
|
End;
|
|
|
|
procedure TObj.proc1;
|
|
begin
|
|
proc2;
|
|
end;
|
|
|
|
procedure TObj.proc2;
|
|
begin
|
|
writeln('2');
|
|
end;
|
|
|
|
begin
|
|
|
|
tobj.create.proc1;
|
|
|
|
end.
|