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

t_id 1077
t_adddate 2003/10/14
t_result 0
Flag t_fail set
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
Success, compilation failed 50 100.0 2024/05/21 01:40:00 15 2024/05/21 06:02:00 29
i386 8 16.0 2024/05/21 01:52:00 47 2024/05/21 06:01:00 28
m68k 1 2.0 2024/05/21 05:47:00 63 2024/05/21 05:47:00 63
sparc 1 2.0 2024/05/21 04:50:00 56 2024/05/21 04:50:00 56
arm 1 2.0 2024/05/21 05:53:00 67 2024/05/21 05:53:00 67
x86_64 17 34.0 2024/05/21 01:40:00 15 2024/05/21 06:00:00 29
powerpc64 14 28.0 2024/05/21 04:20:00 53 2024/05/21 05:49:00 112
mips 1 2.0 2024/05/21 05:57:00 160 2024/05/21 05:57:00 160
aarch64 6 12.0 2024/05/21 04:37:00 35 2024/05/21 06:02:00 29
riscv64 1 2.0 2024/05/21 04:44:00 30 2024/05/21 04:44:00 30
linux 38 76.0 2024/05/21 01:40:00 15 2024/05/21 06:00:00 175
win32 2 4.0 2024/05/21 04:53:00 28 2024/05/21 06:01:00 28
go32v2 2 4.0 2024/05/21 04:56:00 56 2024/05/21 05:41:00 55
solaris 4 8.0 2024/05/21 03:16:00 19 2024/05/21 06:00:00 29
darwin 4 8.0 2024/05/21 05:42:00 24 2024/05/21 06:02:00 29
3.3.1 25 50.0 2024/05/21 01:40:00 15 2024/05/21 06:02:00 29
3.2.3 25 50.0 2024/05/21 01:52:00 47 2024/05/21 06:01:00 28

Source:

{ %FAIL }
{$mode objfpc}

Program test;

uses crt;

type
  TMatrix = class
              Constructor Create;
            private
              Elements : array [1..10,1..10] of real;
            end;

Constructor TMatrix.Create;

begin
end;

OPERATOR :=(r:Real):TMatrix;
  BEGIN
    WITH RESULT DO
      BEGIN
{ Do something }
      END;
    writeln ('Call to overloaded operator :=, real operand');
  END;
operator :=(m : TMatrix):TMatrix;
  BEGIN
    WITH RESULT DO
      BEGIN
{ Do something }
      END;
    writeln ('Call to overloaded operator :=, matrix operand');
  END;

var
  m : TMatrix;
  m2 : TMatrix;

begin
  clrscr;
  writeln ('Performing calculations...');
  m:=TMatrix.Create;
  m2:=TMatrix.Create;
  writeln ('Assigning real to matrix...');
{ This one works }
  m:=1;
  writeln ('Assigning matrix to matrix...');
{ This one does not work }
  m:=m2;
  writeln ('Done.');
end.

Link to SVN view of webtbf/tw0807.pp source.