teststk.pp 772 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.
  22. {
  23. $Log$
  24. Revision 1.6 2002-09-07 15:40:56 peter
  25. * old logs removed and tabs fixed
  26. Revision 1.5 2002/06/01 19:08:52 marco
  27. * Renamefest
  28. Revision 1.4 2002/03/09 23:18:51 carl
  29. * simulate the error code on system with no stack checking
  30. Revision 1.3 2002/03/05 21:54:09 carl
  31. + indicate error code
  32. Revision 1.2 2002/01/19 12:37:12 peter
  33. * no checking for linux
  34. }