2 -- { dg-options "-gnat12" }
4 procedure In_Out_Parameter3 is
6 type Arr is array (1..16) of Integer;
18 function F (I : In Out Rec1) return Boolean is
19 A : Integer := I.A (1);
21 I.A (1) := I.A (1) + 1;
25 I : Rec2 := (R => (A => (others => 0), B => True));
33 if I.R.A (1) /= 1 then
36 if F (I.R) = False then
39 if I.R.A (1) /= 2 then