2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gnat.dg / range_check.adb
blob18839a1aaaa88fcbe0ac9c71cf77f004692605dc
1 -- { dg-do run }
3 procedure range_check is
4 function ident (x : integer) return integer is
5 begin
6 return x;
7 end ident;
9 guard1 : Integer;
11 r : array (1 .. ident (10)) of integer;
12 pragma Suppress (Index_Check, r);
14 guard2 : Integer;
16 begin
17 guard1 := 0;
18 guard2 := 0;
19 r (11) := 3;
20 end;