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

Compare with Previous | Blame | View Log

-- { dg-do compile }
 
procedure access2 is
  Arr : array (1..10) of aliased Float;
  type Acc is access all Float;
  procedure Set (X : integer) is
     Buffer: String (1..8);
     for Buffer'address use Arr (4)'address;
  begin
     Arr (X) := 31.1415;
  end;
  function Get (C : Integer) return Acc is
  begin
     return Arr (C)'access;
  end;
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.