Test suite results for test file webtbs/tw2110.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/tw2110.pp" information:

t_id 903
t_cpu i386
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0
t_opts -Or

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/20 22:37:00 176 2024/05/21 00:32:00 15
i386 18 36.0 2024/05/20 22:37:00 176 2024/05/21 00:08:00 23
sparc 21 42.0 2024/05/20 23:25:00 38 2024/05/20 23:55:00 41
powerpc 1 2.0 2024/05/20 23:05:00 185 2024/05/20 23:05:00 185
x86_64 5 10.0 2024/05/20 23:44:00 14 2024/05/21 00:32:00 15
powerpc64 2 4.0 2024/05/20 23:13:00 213 2024/05/20 23:20:00 71
mipsel 1 2.0 2024/05/20 22:58:00 148 2024/05/20 22:58:00 148
aarch64 1 2.0 2024/05/21 00:12:00 32 2024/05/21 00:12:00 32
sparc64 1 2.0 2024/05/20 23:47:00 148 2024/05/20 23:47:00 148
linux 17 34.0 2024/05/20 22:37:00 176 2024/05/21 00:32:00 15
win32 1 2.0 2024/05/20 23:41:00 23 2024/05/20 23:41:00 23
solaris 32 64.0 2024/05/20 23:23:00 25 2024/05/20 23:55:00 41
3.3.1 28 56.0 2024/05/20 23:23:00 25 2024/05/21 00:32:00 15
3.2.3 22 44.0 2024/05/20 22:37:00 176 2024/05/21 00:08:00 23

Source:

{ %OPT=-Or }
{ %CPU=i386 }
{ m68k compiler does not recognize -Or option }
{ Source provided for Free Pascal Bug Report 2110 }
{ Submitted by "Alex" on  2002-09-05 }
{ e-mail: bjer@freemail.hu }
program BugReport;
{$mode objfpc}

type
  tsmallarray = array[0..3] of byte;

function Y32(Value: Longint): Longint;
var
  t1: array[1..4] of Byte absolute Value;
  t2: array[1..4] of Byte absolute Result;
begin
  t2[1] := t1[4];
  t2[2] := t1[3];
  t2[3] := t1[2];
  t2[4] := t1[1];
end;

function Y3210(Value : longint) : tsmallarray;
 var
  l : longint;
 begin
   l:=value;
   Y3210[0]:=0;
   Y3210[1]:=1;
   Y3210[2]:=2;
   Y3210[3]:=3;
 end;


Var
 l : longint;
 smallarray : tsmallarray;
BEGIN
 l:=$12345678;
 if Y32(l) <> $78563412 then
  Begin
    WriteLn('Error!');
    Halt(1);
  End;  
 smallarray:=Y3210(l);
 if (smallarray[0] <> 0) or
    (smallarray[1] <> 1) or
    (smallarray[2] <> 2) or
    (smallarray[3] <> 3) then
  Begin
    WriteLn('Error!');
    Halt(1);
  end;
  WriteLn('Ok!');   
END.

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