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

t_id 460
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/21 02:33:00 24 2024/05/21 06:31:00 0
i386 4 8.0 2024/05/21 03:08:00 33 2024/05/21 06:01:00 28
m68k 2 4.0 2024/05/21 05:47:00 63 2024/05/21 06:07:00 190
powerpc 7 14.0 2024/05/21 06:13:00 42 2024/05/21 06:31:00 0
arm 2 4.0 2024/05/21 05:29:00 69 2024/05/21 05:53:00 67
x86_64 16 32.0 2024/05/21 02:33:00 24 2024/05/21 06:23:00 27
powerpc64 6 12.0 2024/05/21 05:32:00 97 2024/05/21 06:26:00 0
mips 3 6.0 2024/05/21 04:05:00 47 2024/05/21 06:16:00 240
mipsel 1 2.0 2024/05/21 06:23:00 148 2024/05/21 06:23:00 148
aarch64 9 18.0 2024/05/21 05:20:00 46 2024/05/21 06:24:00 23
linux 31 62.0 2024/05/21 02:33:00 24 2024/05/21 06:31:00 0
win32 1 2.0 2024/05/21 06:01:00 28 2024/05/21 06:01:00 28
go32v2 1 2.0 2024/05/21 05:41:00 55 2024/05/21 05:41:00 55
solaris 10 20.0 2024/05/21 05:55:00 29 2024/05/21 06:19:00 29
darwin 7 14.0 2024/05/21 05:42:00 24 2024/05/21 06:24:00 23
3.3.1 20 40.0 2024/05/21 02:33:00 24 2024/05/21 06:31:00 0
3.2.3 30 60.0 2024/05/21 03:08:00 33 2024/05/21 06:31:00 0

Source:

{ Old file: tbs0267.pp }
{ parameters after methodpointer are wrong             OK 0.99.12b (FK) }

{$MODE objfpc}

program procofobject_arg;
type
  TProcOfObject = procedure of object;
  TTestClass = class
    procedure SomeMethod;
  end;

procedure TTestClass.SomeMethod; begin end;


// the following proc won't print i2 correctly

procedure CrashProc(i1: Integer;method: TProcOfObject; i2: Integer);
begin
  WriteLn('i1 is :', i1);
  WriteLn('i2 is :', i2);
  if i2<>456 then
    Halt(1);
end;

var
  instance: TTestClass;
begin
  instance := TTestClass.Create;
  CrashProc(123, @instance.SomeMethod, 456);
end.

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