tw2229.pp 499 B

1234567891011121314151617181920212223242526272829303132333435
  1. { %result=217 }
  2. { Source provided for Free Pascal Bug Report 2229 }
  3. { Submitted by "Vincent Snijders" on 2002-11-14 }
  4. { e-mail: [email protected] }
  5. program reraise;
  6. {$mode objfpc}
  7. {$H+}
  8. uses
  9. SysUtils;
  10. procedure raiseexception;
  11. var
  12. x: integer;
  13. begin
  14. try
  15. x := 1;
  16. raise Exception.Create('Bug?');
  17. except
  18. on E: Exception do
  19. begin
  20. if x=1 then
  21. //begin
  22. raise
  23. //end
  24. else writeln('Do nothing')
  25. end
  26. end;
  27. end;
  28. begin
  29. raiseexception;
  30. end.