Debian Codegraph @

gcc/testsuite/gnat.dg/generic_inst14.adb

raw
1 -- { dg-do compile }
2
3 with Generic_Inst14_Pkg;
4 with Generic_Inst14_Pkg.Child;
5
6 procedure Generic_Inst14 is
7
8 type T is null record;
9
10 package Tree is new Generic_Inst14_Pkg.Definite_Value_Tree (T);
11
12 package Base is new Generic_Inst14_Pkg.Child.Simple (T, Tree);
13
14 package OK is new Generic_Inst14_Pkg.Child.OK (T, Base.Strat);
15
16 package Not_OK is new Generic_Inst14_Pkg.Child.Not_OK (T, Tree, Base.Strat);
17
18 begin
19 null;
20 end;