Test suite results for test file tbs/tb0356.pp

Test run data :

Run ID:
Operating system: linux
Processor: mipsel
Version: 3.3.1
Fails/OK/Total: 187/9027/9214
Version: 3.3.1
Full version: 3.3.1-15596-gcde5b1a8c5-unpushed
Comment: -ao-xgot -fPIC -XR/home/muller/sys-root/mipsel-linux -Xd -Xr/home/muller/sys-root/mipsel-linux
Machine: cfarm13
Category: 1
SVN revisions: cde5b1a8c5:484dab553b:3f8bbd3b00:902c93f3c3
Submitter: muller
Date: 2024/04/22 11:22:00
Previous run: 936381
Next run: 937661

Hide skipped tests

Hide successful 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:

tr_idruntr_oktr_skiptr_result
456311896937002TrueFalseSuccessfully run

Record count: 1

No log of 937002.

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.