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

t_id 1409
t_adddate 2004/12/06
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=44 Percentage= 88.00

Result type Cat. Count Percentage First date Last Date
Failed to run 6 12.0 2024/10/19 09:40:00 209 2024/10/19 11:33:00 117
i386 2 33.3 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
powerpc 2 33.3 2024/10/19 10:03:00 203 2024/10/19 10:40:00 193
sparc64 2 33.3 2024/10/19 10:46:00 141 2024/10/19 11:33:00 117
linux 6 100.0 2024/10/19 09:40:00 209 2024/10/19 11:33:00 117
3.3.1 6 100.0 2024/10/19 09:40:00 209 2024/10/19 11:33:00 117
Successfully run 44 88.0 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24
i386 3 6.8 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
m68k 3 6.8 2024/10/19 07:29:00 50 2024/10/19 10:22:00 40
sparc 3 6.8 2024/10/19 09:01:00 54 2024/10/19 11:16:00 40
powerpc 4 9.1 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
arm 2 4.5 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 9 20.5 2024/10/19 09:32:00 37 2024/10/19 13:36:00 24
powerpc64 7 15.9 2024/10/19 08:51:00 46 2024/10/19 10:59:00 68
mips 2 4.5 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 2 4.5 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 4 9.1 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 1 2.3 2024/10/19 09:25:00 118 2024/10/19 09:25:00 118
riscv64 2 4.5 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 2 4.5 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 28 63.6 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
go32v2 3 6.8 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
solaris 6 13.6 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 7 15.9 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
3.3.1 26 59.1 2024/10/19 09:32:00 28 2024/10/19 13:26:00 65
3.2.3 18 40.9 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24

Source:

{ Source provided for Free Pascal Bug Report 3411 }
{ Submitted by "Dean Zobec" on  2004-11-28 }
{ e-mail: dezobec@tin.it }
{$mode objfpc}{$H+}
{$interfaces com}
program interfaceleak;
// compile with option -ghl
type

  IMoney = interface
  ['{AAD734A1-6F35-D911-9C73-C6AC7996EDD0}']
  function Add(aMoney: IMoney): IMoney;
  end;

  TMoney = class(TInterfacedObject, IMoney)
  private
    FAmount: Int64;
    FCurrencyUnit: string;
  public
    function Add(aMoney: IMoney): IMoney;
    constructor Create(aAmount: int64;
      aUnit: string);
    destructor Destroy; override;
  end;

  function TMoney.Add(aMoney: IMoney): IMoney;
  begin
    Result := nil;
  end;

  constructor TMoney.Create(aAmount: int64;
    aUnit: string);
  begin
    Inherited Create;
    FAmount := aAmount;
    FCurrencyUnit := aUnit;
  end;

  destructor TMoney.Destroy;
  begin
    FCurrencyUnit := '';
    writeln('Destroyed');
    inherited Destroy;
  end;

procedure TestLeak;
var
  a: IMoney;
begin
  a := TMoney.Create(12, 'EUR');
end;

begin
  TestLeak;
end.

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