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

t_id 574
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:18:00 40
i386 3 6.0 2024/05/21 06:26:00 59 2024/05/21 06:56:00 236
m68k 2 4.0 2024/05/21 06:59:00 58 2024/05/21 07:06:00 244
sparc 2 4.0 2024/05/21 06:46:00 68 2024/05/21 06:55:00 81
powerpc 12 24.0 2024/05/21 06:13:00 42 2024/05/21 06:53:00 75
arm 3 6.0 2024/05/21 06:43:00 210 2024/05/21 07:18:00 40
x86_64 5 10.0 2024/05/21 06:12:00 30 2024/05/21 06:23:00 27
powerpc64 4 8.0 2024/05/21 05:53:00 132 2024/05/21 06:38:00 212
mips 3 6.0 2024/05/21 06:16:00 240 2024/05/21 07:11:00 243
mipsel 4 8.0 2024/05/21 06:07:00 151 2024/05/21 07:17:00 228
aarch64 8 16.0 2024/05/21 06:24:00 23 2024/05/21 07:12:00 37
sparc64 3 6.0 2024/05/21 05:08:00 158 2024/05/21 07:17:00 165
loongarch64 1 2.0 2024/05/21 07:01:00 34 2024/05/21 07:01:00 34
linux 40 80.0 2024/05/21 05:08:00 158 2024/05/21 07:18:00 40
go32v2 1 2.0 2024/05/21 06:26:00 59 2024/05/21 06:26:00 59
solaris 4 8.0 2024/05/21 06:12:00 30 2024/05/21 06:21:00 29
darwin 5 10.0 2024/05/21 06:24:00 23 2024/05/21 07:04:00 38
3.3.1 27 54.0 2024/05/21 05:08:00 158 2024/05/21 07:18:00 40
3.2.3 23 46.0 2024/05/21 06:07:00 151 2024/05/21 07:17:00 228

Source:

{$mode objfpc}
type
  tc = class
    function test(var c: tc): boolean;
    left,right: tc;
  end;

  testfunc = function(var c: tc):boolean of object;

  function foreach(var c: tc; p: testfunc): boolean;
    begin
      if not assigned(c) then
        exit;
    end;


  function tc.test(var c: tc): boolean;
  begin
    { if you use @test, the compiler tries to get the address of the }
    { function result instead of the address of the method (JM)       }
    result := foreach(c.left,@self.test);
    result := foreach(c.right,@self.test) or result;
  end;


begin
end.

Link to SVN view of tbs/tb0356.pp source.