Fix internal error on function call returning extension of limited interface
[official-gcc.git] / gcc / testsuite / gnat.dg / bip_prim_func2_pkg.adb
blob5a4591a4e054dc6f1e5a899db22291d8dabde3da
1 with Ada.Containers.Indefinite_Ordered_Maps;
3 package body BIP_Prim_Func2_Pkg is
5 package Maps is new Ada.Containers.Indefinite_Ordered_Maps
6 (Key_Type => Integer,
7 Element_Type => Some_Access);
9 Map : Maps.Map;
11 function Make (Key : Integer) return First'Class is
12 begin
13 return Map(Key).all;
14 end Make;
16 function Make_Delegate return First'Class is
17 begin
18 return Make;
19 end Make_Delegate;
21 begin
22 Map.Insert (2,Thing_Access);
23 end BIP_Prim_Func2_Pkg;