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

t_id 175
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/10/19 09:39:00 55 2024/10/19 19:16:00 192
i386 4 8.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
m68k 1 2.0 2024/10/19 10:22:00 40 2024/10/19 10:22:00 40
sparc 1 2.0 2024/10/19 11:16:00 40 2024/10/19 11:16:00 40
powerpc 6 12.0 2024/10/19 10:03:00 203 2024/10/19 13:52:00 63
arm 1 2.0 2024/10/19 10:03:00 32 2024/10/19 10:03:00 32
x86_64 8 16.0 2024/10/19 10:50:00 30 2024/10/19 13:40:00 19
powerpc64 10 20.0 2024/10/19 10:06:00 62 2024/10/19 16:33:00 58
mips 2 4.0 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 2 4.0 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 6 12.0 2024/10/19 17:41:00 37 2024/10/19 19:05:00 35
wasm32 5 10.0 2024/10/19 15:57:00 173 2024/10/19 19:16:00 192
sparc64 1 2.0 2024/10/19 10:46:00 141 2024/10/19 10:46:00 141
riscv64 1 2.0 2024/10/19 11:10:00 26 2024/10/19 11:10:00 26
loongarch64 2 4.0 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 19 38.0 2024/10/19 09:40:00 209 2024/10/19 11:38:00 25
go32v2 3 6.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
solaris 6 12.0 2024/10/19 13:22:00 24 2024/10/19 13:40:00 19
darwin 6 12.0 2024/10/19 17:41:00 37 2024/10/19 19:05:00 35
aix 11 22.0 2024/10/19 10:06:00 62 2024/10/19 16:33:00 58
wasi 5 10.0 2024/10/19 15:57:00 173 2024/10/19 19:16:00 192
3.3.1 41 82.0 2024/10/19 09:39:00 55 2024/10/19 19:16:00 192
3.2.3 9 18.0 2024/10/19 10:06:00 62 2024/10/19 13:40:00 19

Source:

{****************************************************************}
{  CODE GENERATOR TEST PROGRAM                                   }
{****************************************************************}
{ NODE TESTED : secondtypeconvert() -> second_cstring_to_pchar   }
{****************************************************************}
{ PRE-REQUISITES: secondload()                                   }
{                 secondassign()                                 }
{                 secondtypeconv()                               }
{****************************************************************}
{ DEFINES:                                                       }
{            FPC     = Target is FreePascal compiler             }
{****************************************************************}
{ REMARKS:                                                       }
{                                                                }
{                                                                }
{                                                                }
{****************************************************************}
{$H-}
const
 StrConst = 'HELLO WORLD';
 AnsiConst = 'COCORICCO!';
 AnsiConst2 = '';

procedure testcstring2pcharone;
 var
  p1 : pchar;
 begin
  WriteLn('(left) : LOC_MEM; (right) : LOC_MEM');
  p1 := pchar(strconst);
  WriteLn('Value should be ''HELLO WORLD''...',p1);
 end;

{ source:                                                       }
{   LOC_REFERENCE, LOC_MEM                                      }
{ destination:                                                  }
var
 p: pchar;
Begin
  WriteLn('------------------- STRING/PCHAR ------------------------');
  WriteLn('(left) : LOC_MEM; (right) : LOC_MEM');
 { LOC_MEM -> LOC_MEM test }
 { SHORTSTRING -> PCHAR           }
 p := pchar(strconst);
 WriteLn('Value should be ''HELLO WORLD''...',p);
 testcstring2pcharone;
 WriteLn('------------------- ANSI/PCHAR ------------------------');
 WriteLn('(left) : LOC_MEM; (right) : LOC_MEM');
 p:=pchar(ansistring(ansiconst));
 WriteLn('Value should be ''COCORICCO!''...',p);
 p:=pchar(ansistring(ansiconst2));
 WriteLn('Value should be ''''...',p);
End.

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

}

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