c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / slice6.adb
blobde71ac608efec10a2038e73f62b3248357ee4efc
1 -- { dg-do compile }
2 -- { dg-options "-gnatws" }
4 with Slice6_Pkg; use Slice6_Pkg;
6 procedure Slice6 is
8 procedure Send (V_LENGTH : SHORT_INTEGER) is
10 V : Integer;
12 V_BLOCK : T_BLOCK (1 .. 4096);
13 for V_BLOCK use at V'Address;
15 V_MSG : T_MSG ;
17 begin
18 V_MSG := (V_LENGTH, 1, V_BLOCK (1 .. V_LENGTH));
19 end;
21 begin
22 null;
23 end;