teststk.pp 374 B

1234567891011121314151617181920212223242526
  1. { %RESULT=202 }
  2. {$ifdef unix}
  3. {$define nocheck}
  4. {$endif}
  5. {$S+}
  6. { This tests the stack checking routine on those }
  7. { targets which support it. }
  8. procedure recursive;
  9. var s: string;
  10. begin
  11. s := 'blahblah';
  12. recursive;
  13. end;
  14. Begin
  15. {$ifndef nocheck}
  16. Recursive;
  17. {$else}
  18. { Simulate the correct error code }
  19. RunError(202);
  20. {$endif}
  21. end.