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

t_id 771
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/20 09:37:00 26 2024/05/20 22:30:00 59
i386 14 28.0 2024/05/20 09:37:00 26 2024/05/20 17:30:00 45
arm 1 2.0 2024/05/20 22:30:00 59 2024/05/20 22:30:00 59
x86_64 13 26.0 2024/05/20 13:38:00 23 2024/05/20 19:35:00 26
mips 3 6.0 2024/05/20 10:56:00 35 2024/05/20 14:28:00 35
aarch64 19 38.0 2024/05/20 10:24:00 38 2024/05/20 22:24:00 44
linux 11 22.0 2024/05/20 10:24:00 38 2024/05/20 22:30:00 59
win32 1 2.0 2024/05/20 09:37:00 26 2024/05/20 09:37:00 26
go32v2 1 2.0 2024/05/20 10:22:00 73 2024/05/20 10:22:00 73
solaris 12 24.0 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
darwin 12 24.0 2024/05/20 16:20:00 32 2024/05/20 17:50:00 56
win64 13 26.0 2024/05/20 13:38:00 23 2024/05/20 19:35:00 26
3.3.1 10 20.0 2024/05/20 10:22:00 73 2024/05/20 19:35:00 26
3.2.2 12 24.0 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
3.2.3 28 56.0 2024/05/20 09:37:00 26 2024/05/20 22:30:00 59

Source:

program BugDemo2;

type
   MyRecordType =
   record
      RecordElement1 : word;
      RecordElement2 : word;
   end;

var
   MyRecord : MyRecordType;
   MyPointer1,MyPointer2 : pointer;

begin
   with MyRecord do
   begin
      { next statement crashes the compiler }
      MyPointer1 := addr(RecordElement2);

      { next statement is OK }
      MyPointer2 := addr(MyRecord.RecordElement2);
   end;
  if MyPointer1<>MyPointer2 then
   begin
     Writeln('Error with addr() and with statement');
     halt(1);
   end;
end.

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