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

t_id 1114
t_adddate 2003/10/14
t_result 0
Flag t_fail set
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=42 Percentage= 84.00

Result type Cat. Count Percentage First date Last Date
Failed to compile 8 16.0 2024/05/17 11:21:00 241 2024/05/17 12:23:00 31
sparc 1 12.5 2024/05/17 12:01:00 74 2024/05/17 12:01:00 74
powerpc 1 12.5 2024/05/17 11:30:00 242 2024/05/17 11:30:00 242
x86_64 1 12.5 2024/05/17 12:23:00 31 2024/05/17 12:23:00 31
powerpc64 2 25.0 2024/05/17 11:34:00 242 2024/05/17 11:39:00 59
mips 1 12.5 2024/05/17 11:21:00 241 2024/05/17 11:21:00 241
sparc64 1 12.5 2024/05/17 12:19:00 173 2024/05/17 12:19:00 173
riscv64 1 12.5 2024/05/17 11:56:00 31 2024/05/17 11:56:00 31
linux 8 100.0 2024/05/17 11:21:00 241 2024/05/17 12:23:00 31
3.3.1 8 100.0 2024/05/17 11:21:00 241 2024/05/17 12:23:00 31
Success, compilation failed 42 84.0 2024/05/17 11:04:00 38 2024/05/17 16:28:00 32
i386 10 23.8 2024/05/17 11:29:00 44 2024/05/17 12:24:00 45
x86_64 25 59.5 2024/05/17 11:10:00 26 2024/05/17 14:42:00 39
aarch64 7 16.7 2024/05/17 11:04:00 38 2024/05/17 16:28:00 32
linux 27 64.3 2024/05/17 11:04:00 38 2024/05/17 12:48:00 22
solaris 10 23.8 2024/05/17 11:29:00 44 2024/05/17 12:24:00 45
darwin 3 7.1 2024/05/17 16:15:00 32 2024/05/17 16:28:00 32
win64 2 4.8 2024/05/17 13:34:00 47 2024/05/17 14:42:00 39
3.3.1 11 26.2 2024/05/17 11:10:00 26 2024/05/17 14:42:00 39
3.2.2 10 23.8 2024/05/17 11:29:00 44 2024/05/17 12:24:00 45
3.2.3 21 50.0 2024/05/17 11:04:00 38 2024/05/17 16:28:00 32

Source:

{ %Fail }
{ new with type  of size > 2Gb }

{ Source provided for Free Pascal Bug Report 2053 }
{ Submitted by "Luis Castedo" on  2002-07-24 }
{ e-mail: castedo@elai.upm.es }
program tb2;

{$MODE TP}
{$C+}

type

  PosInteger = 0 .. high(integer);
  PosLongint = 0 .. high(longint);

  TMyRecord = record
    mr_sglDummy1: array[0..3] of Single;
    mr_lDummy2  : Longint;
    mr_iDummy3  : Integer;
    mr_iDummy4  : Integer;
  end;

  TMyRecordArray = array[PosInteger] of TMyRecord;
  TMyLongRecordArray = array[Longint] of TMyRecord;
  PMyRecordArray = ^TMyRecordArray;
  PMyLongRecordArray = ^TMyLongRecordArray;

var

  pArray: PMyRecordArray;
  pLongArray : PMyLongRecordArray;
  size : longint;

begin

  new(parray);
  new(pLongArray);
  size:= 50 * SizeOf(TMyRecord);
  GetMem(pArray, size);
  FillChar(pArray^,size,#0);
  GetMem(pLongArray, 50 * SizeOf(TMyRecord));
  FillChar(pLongArray^,size,#0);

  Assert(Assigned(pArray));

  WriteLn('pArray = ', Longint(pArray));
  WriteLn('@(pArray^[0]) = ', Longint(@(pArray^[0])));
  pArray^[0].mr_lDummy2 := 24;

  if (pArray^[0].mr_lDummy2<>24) then
    begin
      Halt(1);
    end;

  WriteLn('pLongArray = ', Longint(pLongArray));
  WriteLn('@(pLongArray^[0]) = ', Longint(@(pLongArray^[0])));
  pLongArray^[0].mr_lDummy2 := 25;

  if (pLongArray^[0].mr_lDummy2<>25) then
    begin
      Halt(1);
    end;

  FreeMem(pArray, size);
  FreeMem(pLongArray, size);

end.

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