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

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

Detailed test run results:

Record count: 50

Total = 50

OK=10 Percentage= 20.00

Skipped=40 Percentage= 80.00

Result type Cat. Count Percentage First date Last Date
Success, compilation failed 10 20.0 2024/05/08 13:27:00 22 2024/05/08 19:48:00 175
i386 10 100.0 2024/05/08 13:27:00 22 2024/05/08 19:48:00 175
linux 2 20.0 2024/05/08 19:08:00 176 2024/05/08 19:48:00 175
win32 8 80.0 2024/05/08 13:27:00 22 2024/05/08 19:00:00 22
3.3.1 8 80.0 2024/05/08 13:27:00 22 2024/05/08 19:00:00 22
3.2.3 2 20.0 2024/05/08 19:08:00 176 2024/05/08 19:48:00 175
Skipping test because for other cpu 40 80.0 2024/05/08 13:17:00 68 2024/05/08 20:25:00 69
m68k 2 5.0 2024/05/08 19:15:00 190 2024/05/08 19:55:00 190
sparc 3 7.5 2024/05/08 13:17:00 68 2024/05/08 20:01:00 79
powerpc 2 5.0 2024/05/08 19:37:00 185 2024/05/08 20:18:00 184
arm 3 7.5 2024/05/08 19:02:00 59 2024/05/08 20:25:00 69
x86_64 5 12.5 2024/05/08 13:35:00 32 2024/05/08 20:24:00 52
powerpc64 3 7.5 2024/05/08 13:33:00 60 2024/05/08 19:51:00 71
mips 3 7.5 2024/05/08 16:39:00 49 2024/05/08 20:03:00 240
mipsel 2 5.0 2024/05/08 19:30:00 229 2024/05/08 20:10:00 148
aarch64 14 35.0 2024/05/08 16:11:00 32 2024/05/08 19:34:00 43
sparc64 3 7.5 2024/05/08 13:32:00 159 2024/05/08 20:18:00 148
linux 26 65.0 2024/05/08 13:17:00 68 2024/05/08 20:25:00 69
darwin 12 30.0 2024/05/08 16:11:00 32 2024/05/08 17:40:00 56
win64 2 5.0 2024/05/08 19:43:00 23 2024/05/08 20:10:00 23
3.3.1 4 10.0 2024/05/08 13:17:00 68 2024/05/08 16:39:00 49
3.2.3 36 90.0 2024/05/08 13:33:00 60 2024/05/08 20:25:00 69

Source:

{ fourth simple array of const test }

{$mode objfpc}


program test_cdecl_array_of_const;

var
 l : longint;

const
  has_errors : boolean = false;

procedure test_one_longint(args : array of const);cdecl;
var
  p : plongint;
begin
 p:=plongint(@args);
 l:=p^;
end;

procedure test_two_longints(args : array of const);cdecl;
var
  p : plongint;
begin
 p:=plongint(@args);
 cardinal(p):=cardinal(p)+sizeof(longint);
 l:=p^;
end;

begin
 l:=4;
 test_one_longint([345]);
 if l<>345 then
   has_errors:=true;
 l:=4;
 test_one_longint([345,245]);
 if l<>345 then
   has_errors:=true;
 l:=4;
 test_one_longint([345,245,678]);
 if l<>345 then
   has_errors:=true;
 l:=4;
 test_two_longints([345,456]);
 if l<>456 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/taoc4.pp source.