Test suite results for test file tbs/tb0163.pp

Test run data :

Run ID:
Operating system: aix
Processor: powerpc64
Version: 3.2.3
Fails/OK/Total: 79/7830/7909
Version: 3.2.3
Full version: 3.2.3-1373-gae0fe8a6a0
Comment: -O3 -Cg -Fd
Machine: power-aix
Category: 1
SVN revisions: fdf93c5b29:c17a0e20f5:ae0fe8a6a0:d1c29e6cb9
Submitter: pierre
Date: 2024/04/19 10:23:00 <> 2024/04/09
Previous run: 934291
Next run: 935627

Hide skipped tests

Hide successful tests

Test file "tbs/tb0163.pp" information:

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

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443548084934946TrueFalseSuccessfully run

Record count: 1

No log of 934946.

Source:

{ Old file: tbs0194.pp }
{ @procedure var returns value in it instead of address !! OK 0.99.11 (PM) }

{$Q+}

type
   tproc = function : longint;

var
   f : tproc;
   fa : array [0..1] of tproc;

   function dummy : longint;
     begin
        dummy:=25;
     end;
const
   prog_has_errors : boolean = false;

   procedure Wrong(const s : string);
     begin
        writeln(s);
        prog_has_errors:=True;
     end;

Begin
   f:=@dummy;
   if f()<>25 then
     Wrong('f() does not call dummy !!');
   if pointer(@f)=pointer(@dummy) then
     Wrong('@f returns value of f !');
   if longint(f)=longint(@f) then
     Wrong('longint(@f)=longint(f) !!!!');
   if f<>@dummy then
     Wrong('f does not return the address of dummy');
   if longint(@f)=longint(@dummy) then
     Wrong('longint(@f) returns address of dummy instead of address of f');
   fa[0]:=@dummy;
   if longint(@f)=longint(@fa[0]) then
     Wrong('arrays of procvar also wrong');
   if longint(f)<>longint(fa[0]) then
     Wrong('arrays of procvar and procvars are handled differently !!');
   if prog_has_errors then
     Halt(1);
End.

Link to SVN view of tbs/tb0163.pp source.