Test suite results for test file webtbs/tw3301.pp

Test run data :

Run ID:
Operating system: linux
Processor: powerpc
Version: 3.2.3
Fails/OK/Total: 6/3897/3903
Version: 3.2.3
Full version: 3.2.3-1374-g849fbd722c-unpushed
Comment: -O4 -Xd -Fl/usr/lib32 -Fd -Fl/usr/lib/gcc/powerpc64-linux-gnu/13/32 -Fd
Machine: gcc203
Category: 1
SVN revisions: fdf93c5b29:849fbd722c:ae0fe8a6a0:d1c29e6cb9
Submitter: pierre
Date: 2024/04/19 11:14:00 <> 2024/04/10
Previous run: 934305
Next run: 935646

Hide skipped tests

Hide successful tests

Test file "webtbs/tw3301.pp" information:

t_id 1360
t_adddate 2004/09/13
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443704590934971TrueFalseSuccessfully run

Record count: 1

No log of 934971.

Source:

{ Source provided for Free Pascal Bug Report 3301 }
{ Submitted by "Alexey Barkovoy" on  2004-09-07 }
{ e-mail: clootie@ixbt.com }
{$APPTYPE CONSOLE}
{$mode delphi}

uses SysUtils;

var
  err : boolean;

procedure WideConstArray(FS: String; const Args: array of const);
var i: Integer; S: String;
begin
  for i:= 0 to High(Args) do
  begin
    if (Args[i].Vtype = vtPointer) or
       (Args[i].Vtype = vtObject) or
       (Args[i].Vtype = vtClass) or
       (Args[i].Vtype = vtVariant)
      then // == 5
    begin
      WriteLn('BAD:  ', i, ' parameter is detected as a pointer one - (',
         Args[i].Vtype, ')');
      err:=true;
    end else
      WriteLn(':  ', i, ' parameter is detected as a some other type - (',
         Args[i].Vtype, ')');
  end;
  S:= Format(FS, Args);
  WriteLn;
  WriteLn('Result is:', S);
end;

var
  w1: WideString;  wc: PWideChar;  cc: WideChar;  S: String;  ch: Char;  pch, pch2: PChar;
begin
  w1 := 'Some other wide string';  wc:= @w1[1];  S:= 'String1';  ch:= 'c';  pch:= @ch;  pch2:= @s[1];  cc:= 'Z';
  // BAD: This will raise exception?
  WideConstArray('%s, %s, %s, %s, %s',    [WideString('wide string'), w1, cc, wc, PWideChar(wc)]);
  if err then
    halt(1);
end.

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