Test suite results for test file test/cg/taddr1.pp

Test run data :

Run ID:
Operating system: linux
Processor: m68k
Version: 3.3.1
Fails/OK/Total: 55/9153/9208
Version: 3.3.1
Full version: 3.3.1-15587-g490a8c68ea-unpushed
Comment: -XR/home/muller/sys-root/m68k-linux -Xd -Xr/home/muller/sys-root/m68k-linux
Machine: cfarm13
Category: 1
SVN revisions: 490a8c68ea:8b7dbb81b1:3f8bbd3b00:2f9ed0576e
Submitter: muller
Date: 2024/04/19 11:10:00
Previous run: 934302
Next run: 935651

Hide skipped tests

Hide successful tests

Test file "test/cg/taddr1.pp" information:

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

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443802746934992TrueFalseSuccessfully run

Record count: 1

No log of 934992.

Source:

{****************************************************************}
{  CODE GENERATOR TEST PROGRAM                                   }
{****************************************************************}
{ NODE TESTED : secondaddr()                                     }
{****************************************************************}
{ PRE-REQUISITES: secondload()                                   }
{                 secondassign()                                 }
{                 secondcalln()                                  }
{****************************************************************}
{ DEFINES:                                                       }
{****************************************************************}
{ REMARKS:                                                       }
{****************************************************************}
program taddr;

{$ifdef fpc}
  {$mode fpc}
{$endif}

   procedure testprocvar;
     begin
       WriteLn('Hello world!');
     end;

type
  tmyobj = object
    procedure writeit;
  end;


  procedure tmyobj.writeit;
   begin
       WriteLn('Salutations!');
   end;


const
 chararray : array[0..7] of char =
 ('A',
  'B',
  'C',
  'D',
  'E',
  'F',
  'G',
  #0
 );

var
 procptr: procedure;
 pcharptr : pchar;
 plongint : ^longint;
 long: longint;
 ptr: pointer;
begin
 { Test procedure variable }
 procptr:=@testprocvar;
 Write('Value should be ''Hello world!''...');
 procptr;
 { Test normal variable }
 pcharptr := @chararray;
 Inc(pcharptr,2);
 Write('Value should be ''CDEFG''...');
 WriteLn(pcharptr);
 long := $F0F0;
 plongint := @long;
 Write('Value should be 61680...');
 WriteLn(plongint^);
 { Test method pointers }
 { PROCVARLOAD = TRUE testing }
 { Write('Value should be ''Salutations!''...');}
 ptr:=@tmyobj.writeit;
{ ptr;}
end.

{
   $Log: taddr1.pp,v $
   Revision 1.2  2002/09/07 15:40:49  peter
     * old logs removed and tabs fixed

   Revision 1.1  2002/04/22 16:33:40  peter
     * splitted in 2 files, one fpc mode and other tp mode

}

Link to SVN view of test/cg/taddr1.pp source.