Test suite results for test file webtbs/tw3301.pp

Test run data :

Run ID:
Operating system: linux
Processor: i386
Version: 3.3.1
Fails/OK/Total: 238/9417/9655
Version: 3.3.1
Full version: 3.3.1-15587-g490a8c68ea-unpushed
Comment: -XR/home/muller/sys-root/i386-linux -Xd -Xr/home/muller/sys-root/i386-linux
Machine: cfarm13
Category: 1
SVN revisions: 490a8c68ea:8b7dbb81b1:3f8bbd3b00:2f9ed0576e
Submitter: muller
Date: 2024/04/19 11:03:00
Previous run: 934303
Next run: 935638

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
443822718934990TrueFalseSuccessfully run

Record count: 1

No log of 934990.

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.