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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [nested_float_packed.ads] - Rev 304

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

-- { dg-do compile }
 
package Nested_Float_Packed is
 
   type Float_Type is record
      Value : Float;
      Valid : Boolean;
   end record;
 
   type Data_Type is record
      Data : Float_Type;
   end record;
 
   Default_Data : constant Data_Type :=
     (Data => (Value => 1.0, Valid => False));
 
   type Range_Type is (RV1, RV2, RV3);
   for Range_Type use (1, 2, 3);
 
   Data_Block : array (Range_Type)
     of Data_Type := (others => Default_Data);
end;
 
 
 

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.