1- pos.adb:33 :10: rule violation: positional parameter association
2- 33 | T.E1 (10, 11); -- FLAG (2)
1+ pos.adb:36 :10: rule violation: positional parameter association
2+ 36 | T.E1 (10, 11); -- FLAG (2)
33 | ^^
44
5- pos.adb:33 :14: rule violation: positional parameter association
6- 33 | T.E1 (10, 11); -- FLAG (2)
5+ pos.adb:36 :14: rule violation: positional parameter association
6+ 36 | T.E1 (10, 11); -- FLAG (2)
77 | ^^
88
9- pos.adb:34 :17: rule violation: positional parameter association
10- 34 | T.E2 (True) (10, 11); -- FLAG (2)
9+ pos.adb:37 :17: rule violation: positional parameter association
10+ 37 | T.E2 (True) (10, 11); -- FLAG (2)
1111 | ^^
1212
13- pos.adb:34 :21: rule violation: positional parameter association
14- 34 | T.E2 (True) (10, 11); -- FLAG (2)
13+ pos.adb:37 :21: rule violation: positional parameter association
14+ 37 | T.E2 (True) (10, 11); -- FLAG (2)
1515 | ^^
1616
17- pos.adb:39:15: rule violation: positional parameter association
18- 39 | I := Fun2 (J, K); -- FLAG (2)
17+ pos.adb:40:10: rule violation: positional parameter association
18+ 40 | T.E4 (10, 11); -- FLAG (2)
19+ | ^^
20+
21+ pos.adb:40:14: rule violation: positional parameter association
22+ 40 | T.E4 (10, 11); -- FLAG (2)
23+ | ^^
24+
25+ pos.adb:44:15: rule violation: positional parameter association
26+ 44 | I := Fun2 (J, K); -- FLAG (2)
1927 | ^
2028
21- pos.adb:39 :18: rule violation: positional parameter association
22- 39 | I := Fun2 (J, K); -- FLAG (2)
29+ pos.adb:44 :18: rule violation: positional parameter association
30+ 44 | I := Fun2 (J, K); -- FLAG (2)
2331 | ^
2432
25- pos.adb:40:23 : rule violation: positional parameter association
26- 40 | I := Fun2_Default (J); -- FLAG
27- | ^
33+ pos.adb:52:11 : rule violation: positional parameter association
34+ 52 | Proc3 (I); -- FLAG
35+ | ^
2836
29- pos.adb:45 :11: rule violation: positional parameter association
30- 45 | Proc2 (I); -- FLAG
37+ pos.adb:54 :11: rule violation: positional parameter association
38+ 54 | Proc4 (1, Y => 2); -- FLAG
3139 | ^
3240
33- pos.adb:54 :19: rule violation: positional parameter association
34- 54 | Var_T.T_Proc3 (10); -- FLAG
41+ pos.adb:63 :19: rule violation: positional parameter association
42+ 63 | Var_T.T_Proc3 (10); -- FLAG
3543 | ^^
3644
3745Patched "pos.adb":
@@ -49,6 +57,9 @@ procedure Pos is
4957
5058 procedure Proc1 (I : Integer) with Import;
5159 procedure Proc2 (I : Integer; B : Boolean := True) with Import;
60+ procedure Proc3 (X, Y : Integer := 0) with Import;
61+ procedure Proc4 (X : Integer; Y, Z : Integer := 0) with Import;
62+ procedure Proc5 (X : Integer; Y : Integer := 0) with Import;
5263
5364 function Fun1 (I : Integer) return Integer with Import;
5465 function Fun2 (I : Integer; J : Integer) return Integer with Import;
@@ -72,17 +83,23 @@ begin
7283 T.E1 (I=>10, J=>11); -- FLAG (2)
7384 T.E2 (True) (I=>10, J=>11); -- FLAG (2)
7485 T.E3 (True); -- NOFLAG
86+ T.E4 (10); -- NOFLAG
87+ T.E4 (I=>10, J=>11); -- FLAG (2)
7588
7689 -- Function calls
7790 I := Fun1 (J); -- NOFLAG because ALL is not set
7891 I := Fun2 (I=>J, J=>K); -- FLAG (2)
79- I := Fun2_Default (I=> J); -- FLAG
92+ I := Fun2_Default (J); -- NOFLAG
8093 I := Fun2 (I => 1, J => 2); -- NOFLAG
8194
8295 -- Procedure calls
8396 Proc1 (I); -- NOFLAG because ALL is not set
84- Proc2 (I=>I ); -- FLAG
97+ Proc2 (I); -- NOFLAG
8598 Proc2 (I => 1, B => A); -- NOFLAG
99+ Proc3 (X=>I); -- FLAG
100+ Proc4 (1); -- NOFLAG
101+ Proc4 (X=>1, Y => 2); -- FLAG
102+ Proc5 (1); -- NOFLAG
86103
87104 -- Prefix notation
88105 Var_T.T_Proc1; -- NOFLAG
94111 Var_T.T_Proc3 (Y => 10); -- NOFLAG
95112end Pos;
96113
97-
0 commit comments