OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [pack8.adb] - Diff between revs 304 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 338
-- { dg-do compile }
-- { dg-do compile }
-- { dg-options "-gnatws" }
-- { dg-options "-gnatws" }
 
 
procedure Pack8 is
procedure Pack8 is
 
 
  type R is record
  type R is record
     I : Integer;
     I : Integer;
     a, b : Character;
     a, b : Character;
  end record;
  end record;
 
 
  type Ar1 is array (1..4) of R;
  type Ar1 is array (1..4) of R;
  type Ar2 is array (1..4) of R;
  type Ar2 is array (1..4) of R;
  pragma Pack (Ar2);
  pragma Pack (Ar2);
 
 
  type R2 is record
  type R2 is record
    A : Ar2;
    A : Ar2;
  end record;
  end record;
  for R2 use record
  for R2 use record
    A at 0 range 0 .. 48*4-1-1;  -- { dg-error "too small" }
    A at 0 range 0 .. 48*4-1-1;  -- { dg-error "too small" }
  end record;
  end record;
 
 
  X : Ar1;
  X : Ar1;
  Y : Ar2;
  Y : Ar2;
 
 
begin
begin
  Y (1) := X (1);
  Y (1) := X (1);
end;
end;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.