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/] [access2.adb] - Blame information for rev 313

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
 
3
procedure access2 is
4
  Arr : array (1..10) of aliased Float;
5
  type Acc is access all Float;
6
  procedure Set (X : integer) is
7
     Buffer: String (1..8);
8
     for Buffer'address use Arr (4)'address;
9
  begin
10
     Arr (X) := 31.1415;
11
  end;
12
  function Get (C : Integer) return Acc is
13
  begin
14
     return Arr (C)'access;
15
  end;
16
begin
17
   null;
18
end;

powered by: WebSVN 2.1.0

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