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/05/20 09:37:00 26 2024/05/20 19:35:00 26
i386 14 28.0 2024/05/20 09:37:00 26 2024/05/20 17:30:00 45
x86_64 13 26.0 2024/05/20 13:38:00 23 2024/05/20 19:35:00 26
mips 3 6.0 2024/05/20 10:56:00 35 2024/05/20 14:28:00 35
aarch64 20 40.0 2024/05/20 09:48:00 39 2024/05/20 17:50:00 56
linux 11 22.0 2024/05/20 09:48:00 39 2024/05/20 14:28:00 35
win32 1 2.0 2024/05/20 09:37:00 26 2024/05/20 09:37:00 26
go32v2 1 2.0 2024/05/20 10:22:00 73 2024/05/20 10:22:00 73
solaris 12 24.0 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
darwin 12 24.0 2024/05/20 16:20:00 32 2024/05/20 17:50:00 56
win64 13 26.0 2024/05/20 13:38:00 23 2024/05/20 19:35:00 26
3.3.1 10 20.0 2024/05/20 10:22:00 73 2024/05/20 19:35:00 26
3.2.2 12 24.0 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
3.2.3 28 56.0 2024/05/20 09:37:00 26 2024/05/20 18:11:00 37

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.