PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gnat.dg / opt56.adb
blob9566f51c86bb26b5e44e71b059296ee29af04ccf
1 -- { dg-do compile }
2 -- { dg-options "-O3" }
4 package body Opt56 is
6 function F (Values : Vector) return Boolean is
7 Result : Boolean := True;
8 begin
9 for I in Values'Range loop
10 Result := Result and Values (I) >= 0.0;
11 end loop;
12 return Result;
13 end;
15 end Opt56;