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

t_id 469
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/17 23:23:00 25 2024/05/18 00:29:00 32
i386 22 44.0 2024/05/17 23:23:00 25 2024/05/18 00:21:00 24
sparc 19 38.0 2024/05/17 23:27:00 38 2024/05/17 23:55:00 41
x86_64 9 18.0 2024/05/18 00:05:00 29 2024/05/18 00:29:00 32
linux 7 14.0 2024/05/17 23:33:00 28 2024/05/18 00:20:00 23
win32 4 8.0 2024/05/17 23:27:00 24 2024/05/18 00:21:00 24
solaris 39 78.0 2024/05/17 23:23:00 25 2024/05/18 00:29:00 32
3.3.1 27 54.0 2024/05/17 23:23:00 25 2024/05/18 00:21:00 24
3.2.3 23 46.0 2024/05/17 23:27:00 38 2024/05/18 00:29:00 32

Source:

{ Old file: tbs0279.pp }
{ crash with ansistring and new(^ansistring)           OK 0.99.13 (PFV) }

{$H+}
Program AnsiTest;

Type
   PS=^String;

procedure test;
var
  P:PS;
Begin
  p:=New(PS);
  P^:='';
  P^:=P^+'BLAH';
  P^:=P^+' '+P^;
  Writeln(P^);
  Dispose(P);

  New(P);
  P^:='';
  P^:=P^+'BLAH';
  P^:=P^+' '+P^;
  Writeln(P^);
  Dispose(P);
end;

var
  membefore : longint;

begin
  membefore:=memavail;
  test;
  if membefore<>memavail then
    begin
      Writeln('Memory hole using pointers to ansi strings');
      Halt(1);
    end
  else
    Writeln('No memory hole with pointers to ansi strings');
end.

Link to SVN view of tbs/tb0239.pp source.