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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

package discr1 is
 
  type R is (One, Two);
 
  type C_Type (Kind : R) is
  record
    case Kind is
      when One =>
        Name       : Integer;
      when Two =>
        Designator : String (1 .. 40);
    end case;
  end record;
 
  for C_Type use record
    Name        at   0 range 0.. 31;
    Designator  at   0 range 0..319;
    Kind        at  40 range 0..  7;
  end record;
 
  for C_Type'Size use 44 * 8;
 
  procedure Assign (Id : String);
 
end discr1;
 

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.