mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 01:49:20 +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;
|
||||||
end;
|
end;
|
||||||
test_exception('ln(0)');
|
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
|
if program_has_errors then
|
||||||
Halt(1);
|
Halt(1);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user