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

t_id 1174
t_adddate 2003/10/30
t_result 0
Flag t_fail set
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
Success, compilation failed 50 100.0 2024/05/20 23:33:00 38 2024/05/21 01:27:00 36
i386 27 54.0 2024/05/20 23:54:00 24 2024/05/21 01:27:00 36
sparc 9 18.0 2024/05/20 23:33:00 38 2024/05/20 23:55:00 41
x86_64 9 18.0 2024/05/20 23:44:00 14 2024/05/21 01:25:00 26
powerpc64 2 4.0 2024/05/21 01:10:00 101 2024/05/21 01:11:00 108
aarch64 2 4.0 2024/05/21 00:12:00 32 2024/05/21 00:58:00 35
sparc64 1 2.0 2024/05/20 23:47:00 148 2024/05/20 23:47:00 148
linux 41 82.0 2024/05/20 23:44:00 14 2024/05/21 01:27:00 36
solaris 9 18.0 2024/05/20 23:33:00 38 2024/05/20 23:55:00 41
3.3.1 27 54.0 2024/05/20 23:37:00 42 2024/05/21 01:26:00 31
3.2.3 23 46.0 2024/05/20 23:33:00 38 2024/05/21 01:27:00 36

Source:

{ %fail }

{ Source provided for Free Pascal Bug Report 2751 }
{ Submitted by "Micha" on  2003-10-26 }
{ e-mail:  }
program Construct;

{$mode delphi}

type

  ta = class
  public
    constructor Create(a: tclass);
  end;

  tb = class(ta)
  public
    constructor Create(a: tobject);
  end;

constructor ta.create(a: tclass);
begin
end;

constructor tb.create(a: tobject);
begin
end;

var
  b: tb;
  c: tclass;

begin
  c := tb;
  // This should fail
  b := tb.create(c);
  b.free;
end.

Link to SVN view of webtbf/tw2751.pp source.