tnostackframe3.pp 281 B

12345678910111213141516171819
  1. var
  2. x :longint;
  3. procedure test; nostackframe;
  4. begin
  5. x:=78;
  6. end;
  7. begin
  8. x:=-1;
  9. test;
  10. if x<>78 then
  11. begin
  12. writeln('Wrong result in nostackframe non-assembler procedure');
  13. halt(1);
  14. end
  15. else
  16. writeln('Pascal procedure nostackframe works OK');
  17. end.