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/06/02 02:56:00 22 2024/06/02 05:04:00 31
i386 4 8.0 2024/06/02 03:03:00 25 2024/06/02 04:24:00 56
m68k 1 2.0 2024/06/02 03:55:00 53 2024/06/02 03:55:00 53
sparc 1 2.0 2024/06/02 03:32:00 41 2024/06/02 03:32:00 41
powerpc 1 2.0 2024/06/02 04:10:00 238 2024/06/02 04:10:00 238
x86_64 34 68.0 2024/06/02 02:56:00 22 2024/06/02 05:04:00 31
powerpc64 4 8.0 2024/06/02 04:15:00 53 2024/06/02 04:32:00 57
mips 1 2.0 2024/06/02 04:00:00 47 2024/06/02 04:00:00 47
mipsel 1 2.0 2024/06/02 04:06:00 185 2024/06/02 04:06:00 185
aarch64 3 6.0 2024/06/02 02:59:00 37 2024/06/02 03:42:00 31
linux 35 70.0 2024/06/02 02:56:00 35 2024/06/02 04:32:00 57
win32 1 2.0 2024/06/02 03:03:00 25 2024/06/02 03:03:00 25
go32v2 2 4.0 2024/06/02 03:45:00 54 2024/06/02 04:24:00 56
solaris 12 24.0 2024/06/02 02:56:00 22 2024/06/02 05:04:00 31
3.3.1 35 70.0 2024/06/02 02:56:00 22 2024/06/02 05:04:00 31
3.2.3 15 30.0 2024/06/02 02:56:00 35 2024/06/02 04:32:00 57

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.