Preserving locations for variable-uses and constants (PR c++/43486)
[official-gcc.git] / gcc / testsuite / gnat.dg / lto21_pkg2.adb
blob5d38102d8f23111be12a9002500fd71be2574c27
1 with Ada.Containers; use Ada.Containers;
2 with Ada.Containers.Hashed_Maps;
3 with Ada.Containers.Vectors;
5 package body Lto21_Pkg2 is
7 pragma Suppress (Tampering_Check);
9 procedure Proc is
11 function Hash (Syd : Natural) return Hash_Type is (Hash_Type'Mod (Syd));
13 package Vect2 is new Vectors (Positive, Natural);
15 package Maps is
16 new Hashed_Maps (Natural, Vect2.Vector, Hash, "=", Vect2."=");
18 procedure Nested (M : Maps.Map) is
19 use Maps;
20 procedure Inner (Position : Cursor) is null;
21 begin
22 Iterate (M, Inner'Access);
23 end;
25 M : Maps.Map;
26 begin
27 Nested (M);
28 end;
30 end Lto21_Pkg2;