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/] [discr16.adb] - Rev 304

Compare with Previous | Blame | View Log

-- { dg-do compile }
 
with Discr16_G;
with Discr16_Cont; use Discr16_Cont;
 
procedure Discr16 is
 
  generic
    type T is (<>);
  function MAX_ADD_G(X : T; I : INTEGER) return T;
 
  function MAX_ADD_G(X : T; I : INTEGER) return T is
  begin
    return T'val(T'pos(X) + LONG_INTEGER(I));
  end;
 
  function MAX_ADD is new MAX_ADD_G(ES6A);
 
  package P is new Discr16_G(ES6A, MAX_ADD);
 
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.