OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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 Addr_Slice is
procedure Addr_Slice is
   type Item_Type is record
   type Item_Type is record
      I : Integer;
      I : Integer;
   end record;
   end record;
 
 
   type Index_Type is (A, B);
   type Index_Type is (A, B);
   for Index_Type use (A => 1, B => 10);
   for Index_Type use (A => 1, B => 10);
 
 
   Item_Array : constant array (Index_Type) of Item_Type
   Item_Array : constant array (Index_Type) of Item_Type
     := (A => (I => 10), B => (I => 22));
     := (A => (I => 10), B => (I => 22));
 
 
   Item : Item_Type;
   Item : Item_Type;
   for Item'Address use Item_Array(Index_Type)'Address;
   for Item'Address use Item_Array(Index_Type)'Address;
begin
begin
   null;
   null;
end;
end;
 
 

powered by: WebSVN 2.1.0

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