mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 08:48:08 +02:00
* Report all failed cases instead of halting at the first failure.
git-svn-id: trunk@28255 -
This commit is contained in:
parent
a61321b4bd
commit
4d73dd4977
@ -5,10 +5,13 @@
|
||||
|
||||
uses sysutils;
|
||||
|
||||
var
|
||||
has_errors: boolean;
|
||||
|
||||
procedure doerror(l: longint);
|
||||
begin
|
||||
writeln('error near ',l);
|
||||
halt(1);
|
||||
has_errors:=true;
|
||||
end;
|
||||
|
||||
{$R-}
|
||||
@ -20,6 +23,7 @@ var i: integer;
|
||||
n: int64;
|
||||
q: qword;
|
||||
begin
|
||||
has_errors:=false;
|
||||
i := 32767;
|
||||
i := i + 15;
|
||||
b := 255;
|
||||
@ -212,5 +216,6 @@ begin
|
||||
end;
|
||||
|
||||
{$endif fpc}
|
||||
|
||||
if has_errors then
|
||||
halt(1);
|
||||
End.
|
||||
|
Loading…
Reference in New Issue
Block a user