raise error if worng code generated

This commit is contained in:
pierre 2000-05-09 14:08:52 +00:00
parent a51f97770a
commit 17e185afcb

View File

@ -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.