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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

-- { dg-do compile }
-- { dg-options "-O -gnatws" }
 
package body Array15 is
 
   type Arr is array (Natural range <>) of Integer;
 
   Table : Arr (1 .. 4);
 
   N : Natural := 1;
 
   procedure Zero is
   begin
      N := 0;
   end;
 
   function F (I : Integer) return Integer is
      A1 : Arr := (1 => I);
      A2 : Arr := Table (1 .. N) & A1;
   begin
      return A2 (I);
   end;
 
end Array15;
 

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.