Test suite results for test file webtbs/tw1365.pp

Test run data :

Run ID:
Operating system: linux
Processor: sparc64
Version: 3.3.1
Fails/OK/Total: 177/9033/9210
Version: 3.3.1
Full version: 3.3.1-15610-gfc6d6c123d
Comment: -XR/home/muller/sys-root/sparc64-linux -Xd -Xr/home/muller/sys-root/sparc64-linux
Machine: cfarm14
Category: 1
SVN revisions: fc6d6c123d:a5cb0b6179:0d375c638c:61397d40ae
Submitter: muller
Date: 2024/04/26 12:45:00 <> 2024/04/25
Previous run: 939054
Next run: 940453

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

Record count: 1

No log of 939747.

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.