mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-07 05:27:13 +01:00
raise error if worng code generated
This commit is contained in:
parent
a51f97770a
commit
17e185afcb
@ -28,7 +28,13 @@ begin
|
||||
test1;
|
||||
test2(x,y);
|
||||
if (x<>1) or (y<>2) then
|
||||
Writeln('Error with interrupt');
|
||||
begin
|
||||
Writeln('Error with interrupt');
|
||||
Halt(1);
|
||||
end;
|
||||
if test3<>55 then
|
||||
Writeln('Error with interrupt function');
|
||||
begin
|
||||
Writeln('Error with interrupt function');
|
||||
Halt(1);
|
||||
end;
|
||||
end.
|
||||
Loading…
Reference in New Issue
Block a user