Test suite results for test file test/tclass1.pp

Test run data :

Run ID:
Operating system: linux
Processor: aarch64
Version: 3.2.3
Fails/OK/Total: 33/7942/7975
Version: 3.2.3
Full version: 3.2.3-1373-gae0fe8a6a0
Comment: -XR/home/pierre/sys-root/aarch64-linux -Xd -Xr/home/pierre/sys-root/aarch64-linux
Machine: gcclocal
Category: 1
SVN revisions: fdf93c5b29:c17a0e20f5:ae0fe8a6a0:d1c29e6cb9
Submitter: pierre
Date: 2024/04/19 10:20:00 <> 2024/04/09
Previous run: 934289
Next run: 935630

Hide skipped tests

Hide successful tests

Test file "test/tclass1.pp" information:

t_id 14
t_version 1.1
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443542064934948TrueFalseSuccessfully run

Record count: 1

No log of 934948.

Source:

{ %VERSION=1.1 }
{$mode objfpc}

type
   to1 = class
      constructor create;
      procedure afterconstruction;override;
   end;

   to2 = class(to1)
      constructor create;
      procedure afterconstruction;override;
   end;

var
   i : longint;

   constructor to1.create;

     begin
        writeln('to1.create');
        inherited create;
        if i<>1000 then
          halt(1);
        i:=2000;
     end;

   constructor to2.create;

     begin
        writeln('to2.create');
        if i<>3000 then
          halt(1);
        i:=1000;
        inherited create;
        i:=4000;
     end;

   procedure to1.afterconstruction;

     begin
        writeln('to1.afterconstruction');
        if i<>2000 then
          halt(1);
        i:=3000;
     end;

   procedure to2.afterconstruction;

     begin
        writeln('to2.afterconstruction');
        if i<>4000 then
          halt(1);
        i:=5000;
     end;

var
   o1 : to1;
   o2 : to2;
begin
   i:=1000;
   o1:=to1.create;
   o2:=to2.create;
   if i<>5000 then
     halt(1);
   o1.destroy;
   writeln('ok');
end.

Link to SVN view of test/tclass1.pp source.