Test suite results for test file webtbs/tw1365.pp

Test run data :

Run ID:
Operating system: haiku
Processor: i386
Version: 3.3.1
Fails/OK/Total: 47/9288/9335
Version: 3.3.1
Full version: 3.3.1
Comment: -gl -Fd
Machine: shredder
Category: 1
SVN revisions: 811c683775:513c8983e0:11cf24891d:811c683775
Submitter: pierre
Date: 2023/02/16 14:06:00 <> 2023/02/15
Previous run: 734591
Next run: 750246

Hide skipped tests

Hide successful tests

Test file "webtbs/tw1365.pp" information:

t_id 804
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
-689931736749205TrueFalseSuccessfully run

Record count: 1

No log of 749205.

Source:

{$mode tp}

program test_const_objects;

const
  top2_display_called : integer = 0;
  top3_display_called : integer = 0;

type
   tobj1 = object
     x,y : integer;
   end;

   tobj2 = object(tobj1)
     z : integer;
     constructor init(ax,ay,az : integer);
     procedure display; virtual;
     end;

   tobj3 = object(tobj2)
     t : integer;
     constructor init(ax,ay,az,at : integer);
     procedure display; virtual;
     end;

constructor tobj2.init(ax,ay,az : integer);
begin
  x:=ax;
  y:=ay;
  z:=az;
end;

procedure tobj2.display;
begin
  Writeln(x,' ',y,' ',z);
  inc(top2_display_called);
end;

constructor tobj3.init(ax,ay,az,at : integer);
begin
  x:=ax;
  y:=ay;
  z:=az;
  t:=at;
end;

procedure tobj3.display;
begin
  Writeln(x,' ',y,' ',z,' ',t);
  inc(top3_display_called);
end;

const
  Obj1 : Tobj1 = (x : 1; y : 2);
  Obj2 : TObj2 = (x : 3; y : 4; z : 5);
  Obj3 : Tobj3 = (x : 6; y : 7; z : 8; t : 9);
  Obj3b : Tobj3 = (x : 10);

begin
  Obj2.Display;
  Obj3.Display;
  Obj3b.Display;
  if (top2_display_called<>1) or (top3_display_called<>2) then
    Halt(1);
end.

Link to SVN view of webtbs/tw1365.pp source.