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

t_id 107
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/06/02 01:36:00 47 2024/06/02 06:26:00 40
i386 8 16.0 2024/06/02 01:36:00 47 2024/06/02 05:39:00 44
m68k 1 2.0 2024/06/02 03:55:00 53 2024/06/02 03:55:00 53
sparc 5 10.0 2024/06/02 03:07:00 41 2024/06/02 05:32:00 44
powerpc 1 2.0 2024/06/02 04:10:00 238 2024/06/02 04:10:00 238
x86_64 21 42.0 2024/06/02 01:57:00 22 2024/06/02 06:26:00 40
powerpc64 4 8.0 2024/06/02 04:15:00 53 2024/06/02 04:32:00 57
mips 1 2.0 2024/06/02 04:00:00 47 2024/06/02 04:00:00 47
mipsel 1 2.0 2024/06/02 04:06:00 185 2024/06/02 04:06:00 185
aarch64 6 12.0 2024/06/02 01:46:00 39 2024/06/02 05:43:00 43
sparc64 1 2.0 2024/06/02 05:03:00 157 2024/06/02 05:03:00 157
riscv64 1 2.0 2024/06/02 04:39:00 31 2024/06/02 04:39:00 31
linux 38 76.0 2024/06/02 01:36:00 47 2024/06/02 05:43:00 43
go32v2 3 6.0 2024/06/02 03:45:00 54 2024/06/02 05:03:00 55
solaris 8 16.0 2024/06/02 03:07:00 41 2024/06/02 06:26:00 40
darwin 1 2.0 2024/06/02 05:42:00 0 2024/06/02 05:42:00 0
3.3.1 25 50.0 2024/06/02 01:46:00 39 2024/06/02 06:26:00 40
3.2.3 25 50.0 2024/06/02 01:36:00 47 2024/06/02 05:43:00 43

Source:

{****************************************************************}
{  CODE GENERATOR TEST PROGRAM                                   }
{  By Carl Eric Codere                                           }
{****************************************************************}
{ NODE TESTED : secondassign()                                   }
{****************************************************************}
{ DEFINES:                                                       }
{            FPC     = Target is FreePascal compiler             }
{****************************************************************}
{ REMARKS : Tested with Delphi 3 as reference implementation     }
{           Tests the sortstring assignment.                     }
{****************************************************************}
program tassign1;

{$ifdef fpc}
{$mode objfpc}
{$endif}

const
  RESULT_STRING = 'Hello world';



    procedure fail;
    begin
      WriteLn('Failure.');
      halt(1);
    end;

    function getc : char;
     begin
      getc := 'a';
     end;


var
 failed : boolean;
 s: shortstring;
 c: char;
Begin
  Write('secondassign shortstring node testing...');
  failed := false;

  { constant string }
  s:=RESULT_STRING;
  if s<>RESULT_STRING then
    failed := true;
  { empty constant string, small optim. }
  s:='';
  if s<>'' then
    failed := true;
  { constant character }
  s:='a';
  if s<>'a' then
    failed := true;
  { non-constant character }
  c:='a';
  s:=c;
  if s<>'a' then
     failed := true;

  s:=getc;
  if s<>'a' then
     failed := true;

  if failed then
    fail
  else
    WriteLn('Success!');
end.

{
  $Log: tassign1.pp,v $
  Revision 1.2  2002/09/07 15:40:49  peter
    * old logs removed and tabs fixed

  Revision 1.1  2002/08/10 08:27:43  carl
    + mre tests for cg testuit

}

Link to SVN view of test/cg/tassign1.pp source.