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

t_id 773
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=43 Percentage= 86.00

Result type Cat. Count Percentage First date Last Date
Failed to compile 7 14.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
wasm32 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
wasi 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
3.3.1 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
Successfully run 43 86.0 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
i386 4 9.3 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
powerpc 14 32.6 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
powerpc64 17 39.5 2024/09/26 18:42:00 90 2024/09/26 22:29:00 103
riscv64 8 18.6 2024/09/26 19:14:00 123 2024/09/26 19:59:00 123
linux 39 90.7 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
go32v2 4 9.3 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
3.3.1 27 62.8 2024/09/26 18:42:00 90 2024/09/26 22:38:00 79
3.2.3 16 37.2 2024/09/26 21:17:00 71 2024/09/26 23:02:00 44

Source:

{ Source provided for Free Pascal Bug Report 1152 }
{ Submitted by "Dirk Verwiebe" on  2000-09-30 }
{ e-mail: dirk@verwiebe.de }

{$mode objfpc}

program exception;
uses sysutils,crt;
var
  saveexit : pointer;
  finally_called : boolean;

procedure my_exit;
  begin
    exitproc:=saveexit;
    if not finally_called then
      begin
        Writeln('Problem with exception handling if crt unit is used');
        RunError(1);
      end
    else
      begin
        Writeln('Exception handling works');
        exitcode:=0;
      end;
  end;


var
  p : pointer;
BEGIN
  saveexit:=exitproc;
  exitproc:=@my_exit;
  finally_called:=false;
try
  p:=$ffffffff;
  longint(p^):=0;
finally
  finally_called:=true;
  writeln('Error !!!');
end;
END.

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