summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/array39_pkg.adb
blob: 32fe8e2a55527a1223c7412b31f8d7e36b89dbf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package body Array39_Pkg is

  task Body Tsk is
  begin
    select
      accept E (R : out Rec2; L : Index2) do
      declare
        A  : Arr2 (Index2);
        LL : Index2 := L;
      begin
        for I in 1 .. LL loop
          A (I) := Val;
        end loop;
        R := (D => LL, A => A (1 .. LL));
      end;
      end E;
    end select;
  end Tsk;

end Array39_Pkg;