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

t_id 74
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/21 01:10:00 32 2024/05/21 01:46:00 0
i386 36 72.0 2024/05/21 01:10:00 32 2024/05/21 01:46:00 43
x86_64 12 24.0 2024/05/21 01:21:00 14 2024/05/21 01:46:00 0
aarch64 2 4.0 2024/05/21 01:29:00 35 2024/05/21 01:46:00 0
linux 50 100.0 2024/05/21 01:10:00 32 2024/05/21 01:46:00 0
3.3.1 25 50.0 2024/05/21 01:20:00 31 2024/05/21 01:46:00 0
3.2.3 25 50.0 2024/05/21 01:10:00 32 2024/05/21 01:46:00 43

Source:

{$mode objfpc}
uses sysutils;
{$r+}

var
  l: longint;
  c: cardinal;
  n: longint;
begin
  n := 0;
  l := -1;
  try
    c := l;
  except
    writeln('caught 1!');
    inc(n);
  end;
  c := cardinal($ffffffff);
  try
    l := c;
  except
    writeln('caught 2!');
    inc(n);
  end;
  if n <> 2 then
    begin
      writeln('Still problems with range checking between longint/cardinal');
      halt(1);
    end;
end.

Link to SVN view of test/trange2.pp source.