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/] [specs/] [elab1.ads] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
 
3
pragma Restrictions(No_Elaboration_Code);
4
 
5
with System;
6
 
7
package Elab1 is
8
 
9
   type Ptrs_Type is array (Integer range 1 .. 2) of System.Address;
10
   type Vars_Array is array (Integer range 1 .. 2) of Integer;
11
 
12
   Vars : Vars_Array;
13
 
14
   Val1 : constant Integer := 1;
15
   Val2 : constant Integer := 2;
16
 
17
   Ptrs : constant Ptrs_Type :=
18
     (1  => Vars (Val1)'Address,
19
      2  => Vars (Val2)'Address);
20
 
21
end Elab1;

powered by: WebSVN 2.1.0

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