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

t_id 741
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 05:08:00 158 2024/05/21 07:52:00 0
i386 4 8.0 2024/05/21 06:26:00 59 2024/05/21 07:25:00 42
m68k 3 6.0 2024/05/21 06:59:00 58 2024/05/21 07:39:00 58
sparc 4 8.0 2024/05/21 06:46:00 68 2024/05/21 07:52:00 0
powerpc 9 18.0 2024/05/21 06:28:00 52 2024/05/21 07:24:00 181
arm 3 6.0 2024/05/21 06:43:00 210 2024/05/21 07:18:00 40
x86_64 2 4.0 2024/05/21 06:12:00 30 2024/05/21 06:21:00 29
powerpc64 5 10.0 2024/05/21 05:53:00 132 2024/05/21 07:32:00 77
mips 3 6.0 2024/05/21 07:08:00 154 2024/05/21 07:46:00 0
mipsel 3 6.0 2024/05/21 06:07:00 151 2024/05/21 07:17:00 228
aarch64 8 16.0 2024/05/21 06:35:00 23 2024/05/21 07:39:00 37
sparc64 3 6.0 2024/05/21 05:08:00 158 2024/05/21 07:17:00 165
riscv64 1 2.0 2024/05/21 07:46:00 0 2024/05/21 07:46:00 0
loongarch64 2 4.0 2024/05/21 07:01:00 34 2024/05/21 07:33:00 38
linux 43 86.0 2024/05/21 05:08:00 158 2024/05/21 07:52:00 0
go32v2 1 2.0 2024/05/21 06:26:00 59 2024/05/21 06:26:00 59
solaris 2 4.0 2024/05/21 06:12:00 30 2024/05/21 06:21:00 29
darwin 4 8.0 2024/05/21 06:35:00 23 2024/05/21 07:04:00 38
3.3.1 29 58.0 2024/05/21 05:08:00 158 2024/05/21 07:52:00 0
3.2.3 21 42.0 2024/05/21 06:07:00 151 2024/05/21 07:50:00 62

Source:

Program test_operator;
type
    Vector = record
        X,Y,Z : extended;
        end;
    Matrix = array [1..4,1..4] of extended;

Const
  IDENTITYMATRIX : Matrix =
  ( (1,0,0,0),
    (0,1,0,0),
    (0,0,1,0),
    (0,0,0,1));
{...}

function NewVector (ax,ay,az : extended) : Vector;
begin
  NewVector.X:=ax;
  NewVector.Y:=ay;
  NewVector.Z:=az;
end;

operator * (V : Vector;Value : extended) Result : Vector;
  begin
    Result.X:=Result.X*Value;
    Result.Y:=Result.Y*Value;
    Result.Z:=Result.Z*Value;
  end;
{...}
operator * (Value : extended;V : Vector) Result : Vector;
  begin
    Result.X:=Result.X*Value;
    Result.Y:=Result.Y*Value;
    Result.Z:=Result.Z*Value;
  end;
{...}


operator * (M : Matrix;Value : extended) Result : Matrix;
 var i,j : longint;
  begin
    for i:=1 to 4 do
      for j:=1 to 4 do
        Result[i,j]:=M[i,j]*Value;
  end;
{...}
operator * (Value : extended;M : Matrix) Result : Matrix;
 var i,j : longint;
  begin
    for i:=1 to 4 do
      for j:=1 to 4 do
        Result[i,j]:=M[i,j]*Value;
  end;
{...}

var
   V1, V2 : Vector;
   M1, M2 : Matrix;

begin
     V1 := NewVector (1,1,1);
     V2 := V1 * 2;
     { Everything ok }


     M2 := IDENTITYMATRIX;
     M1 := M2 * 2;
     M1 := IDENTITYMATRIX * 2;
     M2 := IDENTITYMATRIX * 4;
     { Error: Incompatible types: got "E3MATRIX" expected "LONGINT"  in both rows. This doesn't happen if I use 2.0 and 4.0 values. }


     {...}
end.

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