@@ -6,6 +6,46 @@ pos.adb:10:15: rule violation: positional generic association
6610 | (My_Int, Integer); -- FLAG (2)
77 | ^^^^^^^
88
9+ pos.adb:19:28: rule violation: positional generic association
10+ 19 | package I_G_1 is new G (1, 2, 3); -- FLAG (3)
11+ | ^
12+
13+ pos.adb:19:31: rule violation: positional generic association
14+ 19 | package I_G_1 is new G (1, 2, 3); -- FLAG (3)
15+ | ^
16+
17+ pos.adb:19:34: rule violation: positional generic association
18+ 19 | package I_G_1 is new G (1, 2, 3); -- FLAG (3)
19+ | ^
20+
21+ pos.adb:20:28: rule violation: positional generic association
22+ 20 | package I_G_2 is new G (1, 2, C => 3); -- FLAG (2)
23+ | ^
24+
25+ pos.adb:20:31: rule violation: positional generic association
26+ 20 | package I_G_2 is new G (1, 2, C => 3); -- FLAG (2)
27+ | ^
28+
29+ pos.adb:21:28: rule violation: positional generic association
30+ 21 | package I_G_3 is new G (1, C => 2, B => 3); -- FLAG (1)
31+ | ^
32+
33+ pos.adb:25:29: rule violation: positional generic association
34+ 25 | package I_RG is new R_G (1, 2, 3); -- FLAG (3)
35+ | ^
36+
37+ pos.adb:25:32: rule violation: positional generic association
38+ 25 | package I_RG is new R_G (1, 2, 3); -- FLAG (3)
39+ | ^
40+
41+ pos.adb:25:35: rule violation: positional generic association
42+ 25 | package I_RG is new R_G (1, 2, 3); -- FLAG (3)
43+ | ^
44+
45+ pos.adb:43:26: rule violation: positional generic association
46+ 43 | package I_D is new D (1); -- FLAG
47+ | ^
48+
949Patched "pos.adb":
1050==================
1151
@@ -21,6 +61,38 @@ procedure Pos (I : in out Integer) is
2161 (Source=>My_Int, Target=>Integer); -- FLAG (2)
2262
2363 package My_Int_IO is new Ada.Text_IO.Integer_IO (My_Int); -- NOFLAG
64+
65+ generic
66+ A, B, C : Integer;
67+ package G is
68+ end G;
69+
70+ package I_G_1 is new G (A=>1, B=>2, C=>3); -- FLAG (3)
71+ package I_G_2 is new G (A=>1, B=>2, C => 3); -- FLAG (2)
72+ package I_G_3 is new G (A=>1, C => 2, B => 3); -- FLAG (1)
73+
74+ generic package R_G renames G;
75+
76+ package I_RG is new R_G (A=>1, B=>2, C=>3); -- FLAG (3)
77+
78+ generic
79+ A : Integer;
80+ package H is
81+ end H;
82+
83+ package I_H is new H (1); -- NOFLAG
84+
85+ generic package R_H renames H;
86+
87+ package I_RH is new R_H (1); -- NOFLAG
88+
89+ generic
90+ A, B, C : Integer := 0;
91+ package D is
92+ end D;
93+
94+ package I_D is new D (A=>1); -- FLAG
95+
2496begin
2597 null;
2698end Pos;
0 commit comments