fpc/tests/test/tnostackframe3.pp
2013-06-16 18:59:03 +00:00

20 lines
290 B
ObjectPascal

{ %fail }
var
x :longint;
procedure test; nostackframe;
begin
x:=78;
end;
begin
x:=-1;
test;
if x<>78 then
begin
writeln('Wrong result in nostackframe non-assembler procedure');
halt(1);
end
else
writeln('Pascal procedure nostackframe works OK');
end.