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