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

t_id 723
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/18 01:10:00 32 2024/05/18 02:02:00 0
i386 26 52.0 2024/05/18 01:10:00 32 2024/05/18 02:02:00 0
x86_64 21 42.0 2024/05/18 01:28:00 26 2024/05/18 02:01:00 0
aarch64 3 6.0 2024/05/18 01:29:00 34 2024/05/18 01:46:00 37
linux 49 98.0 2024/05/18 01:10:00 32 2024/05/18 02:02:00 0
go32v2 1 2.0 2024/05/18 01:45:00 54 2024/05/18 01:45:00 54
3.3.1 28 56.0 2024/05/18 01:29:00 34 2024/05/18 01:59:00 23
3.2.3 22 44.0 2024/05/18 01:10:00 32 2024/05/18 02:02:00 0

Source:

{ this declaration: ;}
{$ifdef FPC}
  {$mode TP}
{$endif}
 var
   name_a : packed array[0..255] of char;

const
   name_b : PChar = 't';

begin
   { the FPC compiler (0.99.14a) will refuse to compile
    the line ; }
    name_a[0]:='x';
    name_a[1]:=#0;
    if (name_b <> name_a) then
      begin
        writeln(' a and b are different');
      end
    else
      writeln('address of name_a and name_b are equal');
    { while it works under Turbo Pascal (TP). ;}
    name_b:=@name_a;
    if name_a<>name_b then
      begin
        Writeln('Wrong result');
        Halt(1);
      end;
{$ifdef FPC}
     if (name_b <> PChar(name_a)) then
      writeln(' a and b are different');
    { is a legal FPC line, but illegal in TP.}
{$endif}
    { I used ; }
    if (name_b <> PChar(@name_a)) then
      writeln(' a and b are different');
    {because it seems to work for both compiler.}

end.

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