Test suite results for test file tbs/tb0433.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "tbs/tb0433.pp" information:

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

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/17 23:27:00 24 2024/05/18 01:02:00 26
i386 22 44.0 2024/05/17 23:27:00 24 2024/05/18 01:02:00 26
sparc 15 30.0 2024/05/17 23:33:00 38 2024/05/17 23:55:00 41
x86_64 12 24.0 2024/05/18 00:05:00 29 2024/05/18 00:34:00 30
aarch64 1 2.0 2024/05/18 00:11:00 33 2024/05/18 00:11:00 33
linux 13 26.0 2024/05/17 23:33:00 28 2024/05/18 01:02:00 26
win32 3 6.0 2024/05/17 23:41:00 23 2024/05/18 00:21:00 24
solaris 34 68.0 2024/05/17 23:27:00 24 2024/05/18 00:34:00 30
3.3.1 20 40.0 2024/05/17 23:27:00 24 2024/05/18 00:21:00 24
3.2.3 30 60.0 2024/05/17 23:33:00 38 2024/05/18 01:02:00 26

Source:

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

function times2(x : longint) : longint;

begin
  times2:=2*x;
end;

var
 x:function(x:longint):longint;
 y:pointer absolute x;
 z,w,v:pointer;
begin
 z:=@@x;
 w:=addr(@x);
 v:=@(addr(x));
 writeln(longint(y),' ',longint(z),' ',longint(w),' ',longint(v));
 if (z<>w) or (z<>v) then
  begin
    writeln('Addr Error');
    halt(1);
  end;
 if (y<>nil) then
  begin
    writeln('Absolute Error');
    halt(1);
  end;
 x:=times2;
 if (y<>@times2) then
  begin
    writeln('Absolute Error');
    halt(1);
  end;

end.

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