compiler: give error for non-int arguments to make
[official-gcc.git] / gcc / testsuite / gnat.dg / opt3.adb
blobb8ca2c7fba61aed36958f29c654ced8993c042a7
1 -- { dg-do compile }
2 -- { dg-options "-O3" }
4 with Opt3_Pkg; use Opt3_Pkg;
6 procedure Opt3 is
7 type Buffer_Type is array (Integer range <> ) of Short_Integer;
8 B : Buffer_Type (1 .. 256) := (others => 0);
9 begin
10 F (B(1));
11 end;