PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gnat.dg / loop_optimization8_pkg2.adb
blob9b9a3dea170d9fea575a570c42f2cf6f0950b3bc
1 package body Loop_Optimization8_Pkg2 is
3 function Length (Set : T) return Natural is
4 begin
5 return Set.Length;
6 end Length;
8 function Index (Set : T; Position : Natural) return Integer is
9 begin
10 return Set.Elements (Position);
11 end Index;
13 end Loop_Optimization8_Pkg2;