2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / loop_optimization22.adb
blob008d07360a8af0d1feb44e3828fc57db2e9adaf5
1 -- { dg-do compile }
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;
10 begin
11 for I in 1 .. X.Count loop
12 H (Integer(I) + 1):= 0.0;
13 end loop;
14 end;
16 end Loop_Optimization22;
18 -- { dg-final { scan-tree-dump-not "Index_Check" "optimized" } }