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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [discr16_g.ads] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
generic
2
 
3
  type T is (<>);
4
  with function MAX_ADD(X : T; I : INTEGER) return T;
5
 
6
package Discr16_G is
7
 
8
  LO : T := T'val(T'pos(T'first));
9
  HI : T := T'val(T'pos(MAX_ADD(LO, 15)));
10
 
11
  type A2 is array(T range <>) of T;
12
 
13
  type R2(D : T) is
14
  record
15
    C : A2(LO..D);
16
  end record;
17
 
18
end;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.