Test suite results for test file webtbs/tw1365.pp

Test run data :

Run ID:
Operating system: linux
Processor: aarch64
Version: 3.2.3
Fails/OK/Total: 41/7934/7975
Version: 3.2.3
Full version: 3.2.3-1373-gae0fe8a6a0
Comment: -O2 -Fl/usr/lib/gcc/aarch64-linux-gnu/13 -Fd
Machine: gcc103
Category: 1
SVN revisions: fdf93c5b29:c17a0e20f5:ae0fe8a6a0:d1c29e6cb9
Submitter: pierre
Date: 2024/04/19 11:02:00 <> 2024/04/09
Previous run: 934304
Next run: 935639

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
443638327934962TrueFalseSuccessfully run

Record count: 1

No log of 934962.

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.