Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/opt74_pkg.adb @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
package body Opt74_Pkg is procedure Proc (Found : out Integer; Index : out Integer) is begin Index := 1; Found := 0; while (Index <= A'Last) and (Found = 0) loop if A (Index) = 2 then Found := 1; else Index := Index + 1; end if; end loop; end; end Opt74_Pkg;