mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 11:29:20 +02:00
* Fixed test so the same result as in Delphi
git-svn-id: trunk@26877 -
This commit is contained in:
parent
e28824465f
commit
9faea4e757
@ -41,11 +41,16 @@ begin
|
||||
end;
|
||||
|
||||
try
|
||||
y105:='a';
|
||||
v := y105;
|
||||
test105(v);
|
||||
Writeln('Did not catch exception as expected');
|
||||
Halt(1)
|
||||
except
|
||||
on E : TObject do
|
||||
halt(1);
|
||||
begin
|
||||
Writeln('Caught exception ',E.ClassName,'as expected');
|
||||
end
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user