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

Subversion Repositories openrisc

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

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

package Aggr16_Pkg is
 
  type Time_Type is (A, B);
 
  type Time (D : Time_Type := A) is private;
 
  Null_Time : constant Time;
 
private
 
  type Hour is record
    I1 : Integer;
    I2 : Integer;
  end record;
 
  type Time (D : Time_Type := A) is record
    case D is
      when A =>
        A_Time : Integer;
      when B =>
        B_Time : Hour;
    end case;
  end record;
 
  Null_Time : constant Time := (A, 0);
 
end Aggr16_Pkg;
 

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.