mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 11:30:02 +02:00
* extended test
git-svn-id: trunk@47818 -
This commit is contained in:
parent
3f605a5b50
commit
b8fc193b0c
@ -135,6 +135,18 @@ begin
|
||||
end;
|
||||
end;
|
||||
test_exception('ln(0)');
|
||||
try
|
||||
exception_called:=false;
|
||||
i := -1;
|
||||
e := sqrt(i);
|
||||
except
|
||||
on e : exception do
|
||||
begin
|
||||
Writeln('exception called ',e.message);
|
||||
exception_called:=true;
|
||||
end;
|
||||
end;
|
||||
test_exception('sqrt(-1)');
|
||||
if program_has_errors then
|
||||
Halt(1);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user