Debian Codegraph @

gcc/testsuite/gnat.dg/specs/elab1.ads

raw
1 -- { 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;