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

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

Detailed test run results:

Record count: 50

Total = 50

OK=8 Percentage= 16.00

Skipped=42 Percentage= 84.00

Result type Cat. Count Percentage First date Last Date
Success, compilation failed 8 16.0 2024/05/08 12:32:00 236 2024/05/08 15:10:00 25
i386 8 100.0 2024/05/08 12:32:00 236 2024/05/08 15:10:00 25
linux 2 25.0 2024/05/08 12:32:00 236 2024/05/08 12:44:00 172
win32 6 75.0 2024/05/08 13:01:00 21 2024/05/08 15:10:00 25
3.3.1 7 87.5 2024/05/08 12:32:00 236 2024/05/08 15:10:00 25
3.2.3 1 12.5 2024/05/08 12:44:00 172 2024/05/08 12:44:00 172
Skipping test because for other cpu 42 84.0 2024/05/08 12:03:00 74 2024/05/08 17:29:00 34
m68k 2 4.8 2024/05/08 12:40:00 244 2024/05/08 12:52:00 58
sparc 4 9.5 2024/05/08 12:03:00 74 2024/05/08 13:43:00 62
powerpc 2 4.8 2024/05/08 12:52:00 243 2024/05/08 13:17:00 181
arm 2 4.8 2024/05/08 12:28:00 33 2024/05/08 12:36:00 210
x86_64 5 11.9 2024/05/08 12:20:00 29 2024/05/08 14:13:00 40
powerpc64 4 9.5 2024/05/08 12:55:00 242 2024/05/08 13:33:00 60
mips 3 7.1 2024/05/08 12:44:00 239 2024/05/08 16:39:00 49
mipsel 2 4.8 2024/05/08 12:48:00 183 2024/05/08 13:10:00 228
aarch64 14 33.3 2024/05/08 12:20:00 37 2024/05/08 17:29:00 34
sparc64 3 7.1 2024/05/08 12:38:00 163 2024/05/08 14:06:00 137
loongarch64 1 2.4 2024/05/08 12:37:00 36 2024/05/08 12:37:00 36
linux 31 73.8 2024/05/08 12:03:00 74 2024/05/08 16:39:00 49
darwin 11 26.2 2024/05/08 16:11:00 32 2024/05/08 17:29:00 34
3.3.1 19 45.2 2024/05/08 12:03:00 74 2024/05/08 16:39:00 49
3.2.3 23 54.8 2024/05/08 12:20:00 37 2024/05/08 17:29:00 34

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.