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

t_id 1538
t_cpu powerpc
t_adddate 2005/03/28
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=0 Percentage= 0.00

Skipped=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Skipping test because for other cpu 36 72.0 2024/09/26 18:42:00 90 2024/09/26 22:50:00 299
i386 4 11.1 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
powerpc64 17 47.2 2024/09/26 18:42:00 90 2024/09/26 22:29:00 103
wasm32 7 19.4 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
riscv64 8 22.2 2024/09/26 19:14:00 123 2024/09/26 19:59:00 123
linux 25 69.4 2024/09/26 18:42:00 90 2024/09/26 22:29:00 103
go32v2 4 11.1 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
wasi 7 19.4 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
3.3.1 22 61.1 2024/09/26 18:42:00 90 2024/09/26 22:50:00 299
3.2.3 14 38.9 2024/09/26 21:17:00 71 2024/09/26 22:29:00 103
Skipping test because for other target 14 28.0 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
powerpc 14 100.0 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
linux 14 100.0 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
3.3.1 12 85.7 2024/09/26 19:41:00 35 2024/09/26 20:38:00 84
3.2.3 2 14.3 2024/09/26 22:51:00 44 2024/09/26 23:02:00 44

Source:

{ %cpu=powerpc }
{ %target=darwin,macos}

type
  tr1 = record
    b: byte;
  end;

  tr2 = record
    l: longint;
  end;

  tr3 = record
    i: int64;
  end;

  tr4 = record
    s: string;
  end;

var
  r1: tr1;
  r2: tr2;
  r3: tr3;
  r4: tr4;

procedure p1normal(const r: tr1);
begin
  if @r = @r1 then
    halt(1);
end;


procedure p2normal(const r: tr2);
begin
  if @r = @r2 then
    halt(1);
end;


procedure p3normal(const r: tr3);
begin
  if @r = @r3 then
    halt(1);
end;


procedure p4normal(const r: tr4);
begin
  if @r <> @r4 then
    halt(1);
end;

procedure p1normal2(r: tr1);
begin
  if @r = @r1 then
    halt(1);
end;


procedure p2normal2(r: tr2);
begin
  if @r = @r2 then
    halt(1);
end;


procedure p3normal2(r: tr3);
begin
  if @r = @r3 then
    halt(1);
end;


procedure p4normal2(r: tr4);
begin
  if @r = @r4 then
    halt(1);
end;


procedure p1mw(const r: tr1); mwpascal;
begin
  if @r <> @r1 then
    halt(1);
end;


procedure p2mw(const r: tr2);mwpascal;
begin
  if @r <> @r2 then
    halt(1);
end;


procedure p3mw(const r: tr3);mwpascal;
begin
  if @r <> @r3 then
    halt(1);
end;


procedure p4mw(const r: tr4);mwpascal;
begin
  if @r <> @r4 then
    halt(1);
end;


procedure p1mw2(r: tr1); mwpascal;
begin
  if @r = @r1 then
    halt(1);
end;


procedure p2mw2(r: tr2);mwpascal;
begin
  if @r = @r2 then
    halt(1);
end;


procedure p3mw2(r: tr3);mwpascal;
begin
  if @r = @r3 then
    halt(1);
end;


procedure p4mw2(r: tr4);mwpascal;
begin
  if @r = @r4 then
    halt(1);
end;


begin
  p1normal(r1);
  p2normal(r2);
  p3normal(r3);
  p4normal(r4);

  p1normal2(r1);
  p2normal2(r2);
  p3normal2(r3);
  p4normal2(r4);

  p1mw(r1);
  p2mw(r2);
  p3mw(r3);
  p4mw(r4);

  p1mw2(r1);
  p2mw2(r2);
  p3mw2(r3);
  p4mw2(r4);
end.

Link to SVN view of test/cg/tcalcon1.pp source.