* Report all failed cases instead of halting at the first failure.

git-svn-id: trunk@28255 -
This commit is contained in:
sergei 2014-07-24 12:05:33 +00:00
parent a61321b4bd
commit 4d73dd4977

View File

@ -5,10 +5,13 @@
uses sysutils; uses sysutils;
var
has_errors: boolean;
procedure doerror(l: longint); procedure doerror(l: longint);
begin begin
writeln('error near ',l); writeln('error near ',l);
halt(1); has_errors:=true;
end; end;
{$R-} {$R-}
@ -20,6 +23,7 @@ var i: integer;
n: int64; n: int64;
q: qword; q: qword;
begin begin
has_errors:=false;
i := 32767; i := 32767;
i := i + 15; i := i + 15;
b := 255; b := 255;
@ -212,5 +216,6 @@ begin
end; end;
{$endif fpc} {$endif fpc}
if has_errors then
halt(1);
End. End.