Test suite results for test file webtbs/tw2504.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 "webtbs/tw2504.pp" information:

t_id 964
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/06/02 01:33:00 35 2024/06/02 02:32:00 22
i386 16 32.0 2024/06/02 01:33:00 35 2024/06/02 02:31:00 25
x86_64 32 64.0 2024/06/02 01:34:00 16 2024/06/02 02:32:00 22
aarch64 2 4.0 2024/06/02 02:17:00 38 2024/06/02 02:19:00 41
linux 50 100.0 2024/06/02 01:33:00 35 2024/06/02 02:32:00 22
3.3.1 29 58.0 2024/06/02 01:33:00 35 2024/06/02 02:32:00 22
3.2.3 21 42.0 2024/06/02 01:38:00 27 2024/06/02 02:31:00 25

Source:

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

type
  BRec = record
    fu: Function:Longint;
  end;

var
  a : Longint;
  b : BRec;

function f1:longint;
begin
  result:=10;
end;

begin
  b.fu:=f1;
//  a:=b.fu(); // works well
  a:=b.fu;   // causes "Error: incompatible types"
  writeln(a);
  if a<>10 then
   halt(1);
end.

Link to SVN view of webtbs/tw2504.pp source.