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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [varsize_copy.adb] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

-- { dg-do compile }
-- { dg-options "-O -gnatws" }
 
package body Varsize_Copy is
 
   type Key_Mapping_Type is record
      Page : Page_Type;
      B    : Boolean;
   end record;
 
   type Key_Mapping_Array is array (Key_Type) of Key_Mapping_Type;
 
   type Set is record
      Key_Mappings : Key_Mapping_Array;
   end record;
 
   S : Set;
 
   function F (Key : Key_Type) return Page_Type is
   begin
      return S.Key_Mappings (Key).Page;
   end;
 
end Varsize_Copy;
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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