Test suite results for test file webtbs/tw2028.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw2028.pp" information:

t_id 891
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/21 01:10:00 32 2024/05/21 01:52:00 22
i386 33 66.0 2024/05/21 01:10:00 32 2024/05/21 01:51:00 35
x86_64 15 30.0 2024/05/21 01:25:00 26 2024/05/21 01:52:00 22
aarch64 2 4.0 2024/05/21 01:29:00 35 2024/05/21 01:46:00 38
linux 50 100.0 2024/05/21 01:10:00 32 2024/05/21 01:52:00 22
3.3.1 26 52.0 2024/05/21 01:25:00 37 2024/05/21 01:52:00 22
3.2.3 24 48.0 2024/05/21 01:10:00 32 2024/05/21 01:51:00 35

Source:

{ Source provided for Free Pascal Bug Report 2028 }
{ Submitted by "Han Wentao" on  2002-07-04 }
{ e-mail: hanwentao@cnnb.net }
{$INLINE ON}
function Max(a,b:Byte):Byte; inline;
begin
  if a>b then
    Max:=a
  else
    Max:=b;
end;

var
 l1,  l2 : longint;
begin
  l1:=Max(1,2);
  l2:=Max(2,1);
  if l1 <> 2 then
   begin
     WriteLn('Error!');
     halt(1);
   end;
  if l2 <> 2 then
   begin
     WriteLn('Error!');
     halt(1);
   end;
end.

Link to SVN view of webtbs/tw2028.pp source.