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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [discr32_pkg.ads] - Rev 696

Compare with Previous | Blame | View Log

package Discr32_Pkg is
 
  type Enum is (One, Two, Three);
 
  type R (D : Enum) is record
    case D is
      when One   => B : Boolean;
      when Two   => I : Integer;
      when Three => F : Float;
    end case;
  end record;
 
  for R use record
     D at 0 range 0 .. 1;
     B at 1 range 0 .. 0;
     I at 4 range 0 .. 31 + 128;
--     F at 4 range 0 .. 31;
  end record;
 
  subtype R1 is R (One);
  subtype R2 is R (Two);
  subtype R3 is R (Three);
 
end Discr32_Pkg;
 

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.