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

t_id 1523
t_adddate 2005/03/14
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=37 Percentage= 74.00

Result type Cat. Count Percentage First date Last Date
Failed to run 13 26.0 2024/05/20 16:09:00 22 2024/05/20 23:28:00 39
i386 1 7.7 2024/05/20 22:37:00 176 2024/05/20 22:37:00 176
m68k 1 7.7 2024/05/20 22:44:00 190 2024/05/20 22:44:00 190
sparc 1 7.7 2024/05/20 23:28:00 39 2024/05/20 23:28:00 39
powerpc 1 7.7 2024/05/20 23:05:00 185 2024/05/20 23:05:00 185
arm 1 7.7 2024/05/20 22:30:00 59 2024/05/20 22:30:00 59
x86_64 5 38.5 2024/05/20 16:09:00 22 2024/05/20 19:35:00 26
powerpc64 2 15.4 2024/05/20 23:13:00 213 2024/05/20 23:20:00 71
aarch64 1 7.7 2024/05/20 22:24:00 44 2024/05/20 22:24:00 44
linux 7 53.8 2024/05/20 22:24:00 44 2024/05/20 23:20:00 71
solaris 1 7.7 2024/05/20 23:28:00 39 2024/05/20 23:28:00 39
win64 5 38.5 2024/05/20 16:09:00 22 2024/05/20 19:35:00 26
3.3.1 6 46.2 2024/05/20 16:09:00 22 2024/05/20 23:28:00 39
3.2.3 7 53.8 2024/05/20 22:24:00 44 2024/05/20 23:20:00 71
Successfully run 37 74.0 2024/05/20 16:13:00 26 2024/05/20 23:30:00 79
i386 18 48.6 2024/05/20 16:23:00 44 2024/05/20 23:30:00 24
sparc 2 5.4 2024/05/20 23:27:00 38 2024/05/20 23:30:00 79
x86_64 3 8.1 2024/05/20 16:13:00 26 2024/05/20 18:11:00 37
mips 1 2.7 2024/05/20 22:51:00 240 2024/05/20 22:51:00 240
mipsel 1 2.7 2024/05/20 22:58:00 148 2024/05/20 22:58:00 148
aarch64 12 32.4 2024/05/20 16:20:00 32 2024/05/20 17:50:00 56
linux 4 10.8 2024/05/20 22:51:00 240 2024/05/20 23:30:00 79
solaris 18 48.6 2024/05/20 16:23:00 44 2024/05/20 23:30:00 24
darwin 12 32.4 2024/05/20 16:20:00 32 2024/05/20 17:50:00 56
win64 3 8.1 2024/05/20 16:13:00 26 2024/05/20 18:11:00 37
3.3.1 5 13.5 2024/05/20 23:23:00 25 2024/05/20 23:30:00 24
3.2.2 12 32.4 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
3.2.3 20 54.1 2024/05/20 16:13:00 26 2024/05/20 23:30:00 79

Source:

{ Source provided for Free Pascal Bug Report 3157 }
{ Submitted by "Michalis Kamburelis" on  2004-06-11 }
{ e-mail: michalis@camelot.homedns.org }

{$mode objfpc}

uses SysUtils, Math;

var
  c:Single;
  temp_float:double;
  temp_int:Integer;
begin
 try
  { cosh(800) =~ 1.36E+0347, this will fit in Extended but will
    not fit in Single or Double.
    So instruction below should raise Floating point overflow.
    But it does not (yet). }
  c:=cosh(800);  
 except
  on E:Exception do
    begin
      Writeln('Line "c:=..." raised ' +E.ClassName+ ': ' +E.Message);
      halt(0);
    end;
 end;

 temp_float:=9/200;
 try
  { This innocent instruction will raise EOverflow exception.

    Note: if this will be changed to "Round(9/200)" then
    this whole program will run with no exception
    (I guess that it's because "Round(9/200)" will be calculated
    at compile-time). }
  temp_int:=Round(temp_float);
 except
  on E:Exception do
   Writeln('Line "temp_int:=..." raised ' +E.ClassName+ ': ' +E.Message);
 end;
 halt(1);
end.

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