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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [discr22.adb] - Rev 304

Compare with Previous | Blame | View Log

-- { dg-do compile }
-- { dg-options "-gnatws" }
 
procedure Discr22 is
 
   subtype Precision is Integer range 1 .. 5;
 
   type Rec(D1 : Precision; D2 : Integer) is record
      case D1 is
         when 1 => I : Integer;
         when others => null;
      end case;
   end record;
   for Rec use record
      D1 at 0 range 0 .. 7;
   end record;
 
   P : Precision;
   X : Rec(P, 0);
 
begin
   null;
end;
 

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.