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

t_id 1250
t_adddate 2004/02/13
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/20 23:33:00 38 2024/05/21 01:32:00 28
i386 30 60.0 2024/05/21 00:08:00 23 2024/05/21 01:32:00 28
sparc 6 12.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 3 6.0 2024/05/21 00:12:00 32 2024/05/21 01:29:00 35
linux 44 88.0 2024/05/20 23:44:00 14 2024/05/21 01:32:00 28
solaris 6 12.0 2024/05/20 23:33:00 38 2024/05/20 23:55:00 41
3.3.1 30 60.0 2024/05/20 23:37:00 42 2024/05/21 01:32:00 28
3.2.3 20 40.0 2024/05/20 23:33:00 38 2024/05/21 01:30:00 34

Source:

{ Source provided for Free Pascal Bug Report 2966 }
{ Submitted by "Alexey Barkovoy" on  2004-02-09 }
{ e-mail: clootie@ixbt.com }
program Project1;

type
  {$ALIGN 8} // Can be 8, 16, 32 other value
  TType1 = record
    f: Word;
  end;

  TType2 = packed record
    f, g: Word;
  end;

  TType3 = record
    f, g: Word;
  end;

var
  t: TType2;
  t2: TType3;
begin
  WriteLn('Type1 = ', SizeOf(TType1));
  WriteLn('Type2 = ', SizeOf(TType2));
  WriteLn('Type3 = ', SizeOf(TType3));
  WriteLn('It''s OK = ', DWORD(t));
  WriteLn('This is the bug = ', DWORD(t2)); // Compiler stops here with "Error: Illegal type conversion"
end.

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