mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 20:49:09 +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;
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user