Debian Codegraph @

gcc/testsuite/gnat.dg/bip_prim_func2_pkg.ads

raw
1 generic
2 type First(<>) is abstract tagged limited private;
3 type Second(<>) is new First with private;
4 with function Make return Second is <>;
5 package BIP_Prim_Func2_Pkg is
6
7 function Make (Key : Integer) return First'Class;
8
9 private
10
11 type Some_Access is not null access function return First'Class;
12
13 function Make_Delegate return First'Class;
14
15 Thing_Access : constant Some_Access := Make_Delegate'Access;
16
17 end BIP_Prim_Func2_Pkg;