ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gnat.dg/loop_entry2.adb

12 lines
266 B
Ada
Raw Normal View History

2024-04-01 15:19:46 +00:00
-- { dg-do compile }
-- { dg-options "-gnata" }
procedure Loop_Entry2 (S : String) is
J : Integer := S'First;
begin
while S(J..J+1) = S(J..J+1) loop
pragma Loop_Invariant (for all K in J'Loop_Entry .. J => K <= J);
J := J + 1;
end loop;
end;