PR testsuite/86649
[official-gcc.git] / gcc / testsuite / gnat.dg / slice9.adb
blob2a90a9c631c384e5a84a70f6ffbc3c49fd54a198
1 -- { dg-do compile }
3 procedure Slice9 is
5 function Ident (I : Integer) return Integer is
6 begin
7 return I;
8 end;
10 subtype S is String (Ident(5)..Ident(9));
12 Dest : S;
14 Src : String (Ident(1)..Ident(5)) := "ABCDE";
16 begin
17 Dest (Ident(5)..Ident(7)) := Src (Ident(1)..Ident(3));
18 end;