2 -- { dg-options "-O -fdump-tree-optimized" }
4 pragma Overflow_Mode
(Minimized
);
6 package body Loop_Optimization22
is
8 procedure Foo
(X
: Discrim_Type
) is
9 H
: array (1 .. Integer (X
.Count
) + 1) of Float;
11 for I
in 1 .. X
.Count
loop
12 H
(Integer(I
) + 1):= 0.0;
16 end Loop_Optimization22
;
18 -- { dg-final { scan-tree-dump-not "Index_Check" "optimized" } }