Debian Codegraph @

gcc/testsuite/gnat.dg/generic_inst14_pkg-child.ads

raw
1 package Generic_Inst14_Pkg.Child is
2
3 generic
4 type Value is private;
5 with package Value_Tree is new Definite_Value_Tree (Value => Value);
6 package Simple is
7 type Node is new Value_Tree.Value_Node with null record;
8 package Strat is new Def_Strat (Value, Value_Tree, Node);
9 end Simple;
10
11 generic
12 type Value is private;
13 with package A_Strat is new Def_Strat (Value => Value, others => <>);
14 package OK is
15 procedure Plop (N : A_Strat.Node) is null;
16 end OK;
17
18 generic
19 type Value is private;
20 with package Value_Tree is new Definite_Value_Tree (Value => Value);
21 with package A_Strat is
22 new Def_Strat (Value => Value, Value_Tree => Value_Tree, others => <>);
23 package Not_OK is
24 procedure Plop (N : A_Strat.Node) is null;
25 end Not_OK;
26
27 end Generic_Inst14_Pkg.Child;