Test suite results for test file test/cg/cdecl/taoc5.pp

Test run data :

Run ID:
Operating system: linux
Processor: powerpc64
Version: 3.3.1
Fails/OK/Total: 61/9155/9216
Version: 3.3.1
Full version: 3.3.1-15584-g2f9ed0576e
Comment: -Cb- -dCPUPOWERPC64LE -XR/home/muller/sys-root/powerpc64le-linux -Xd -Xr/home/muller/sys-root/powerpc64le-linux
Machine: cfarm421
Category: 1
SVN revisions: 2f9ed0576e:8b7dbb81b1:3f8bbd3b00:2f9ed0576e
Submitter: muller
Date: 2024/04/19 11:34:00 <> 2024/04/18
Previous run: 934318
Next run: 935649

Hide skipped tests

Hide successful tests

Test file "test/cg/cdecl/taoc5.pp" information:

t_id 214
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443954982934993FalseTrueSkipping test because for other cpu

Record count: 1

No log of 934993.

Source:

{ fifth simple array of const test }

{$mode objfpc}


program test_cdecl_array_of_const;

var
 l : double;

const
  has_errors : boolean = false;

procedure test_one_double(args : array of const);cdecl;
type
  pdouble = ^double;
var
  p : pdouble;
begin
 p:=pdouble(@args);
 l:=p^;
end;

procedure test_two_doubles(args : array of const);cdecl;
var
  p : pdouble;
begin
 p:=pdouble(@args);
 cardinal(p):=cardinal(p)+sizeof(double);
 l:=p^;
end;

begin
 l:=4.0;
 test_one_double([3.45]);
 if abs(l-3.45)>0.01 then
   has_errors:=true;
 l:=4.0;
 test_one_double([3.45,2.45]);
 if abs(l-3.45)>0.01 then
   has_errors:=true;
 l:=4;
 test_one_double([3.45,24.25,678.8]);
 if abs(l-3.45)>0.01 then
   has_errors:=true;
 l:=4;
 test_two_doubles([3.45,4.56]);
 if abs(l-4.56)>0.01 then
   has_errors:=true;
 if has_errors then
   begin
     Writeln('cdecl array of const problem');
     halt(1);
   end;
end.

Link to SVN view of test/cg/cdecl/taoc5.pp source.