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/17 23:33:00 28 2024/05/18 01:16:00 0
i386 24 48.0 2024/05/17 23:33:00 28 2024/05/18 01:16:00 0
sparc 10 20.0 2024/05/17 23:36:00 42 2024/05/17 23:55:00 41
x86_64 12 24.0 2024/05/18 00:05:00 29 2024/05/18 00:34:00 30
powerpc64 2 4.0 2024/05/18 01:09:00 101 2024/05/18 01:11:00 108
aarch64 2 4.0 2024/05/18 00:11:00 33 2024/05/18 00:52:00 35
linux 25 50.0 2024/05/17 23:33:00 28 2024/05/18 01:16:00 0
win32 3 6.0 2024/05/17 23:41:00 23 2024/05/18 00:21:00 24
solaris 22 44.0 2024/05/17 23:36:00 42 2024/05/18 00:34:00 30
3.3.1 19 38.0 2024/05/17 23:33:00 28 2024/05/18 01:16:00 0
3.2.3 31 62.0 2024/05/17 23:39:00 24 2024/05/18 01:16:00 0

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.