blob: 2a90a9c631c384e5a84a70f6ffbc3c49fd54a198 [file] [log] [blame]
-- { dg-do compile }
procedure Slice9 is
function Ident (I : Integer) return Integer is
begin
return I;
end;
subtype S is String (Ident(5)..Ident(9));
Dest : S;
Src : String (Ident(1)..Ident(5)) := "ABCDE";
begin
Dest (Ident(5)..Ident(7)) := Src (Ident(1)..Ident(3));
end;