aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/fixce.adb
blob: 91e02e79383b9ae7a6768b4542551cc8a4771c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--  { dg-do run }

procedure fixce is
   type D is delta 128.0 / (2 ** 15) range 0.0 .. 256.0;
   type R is range 0 .. 200;
   dd : D;
   RA : constant array (1 .. 3) of R := (127, 128, 200);
begin
   dd := D (RA (2));
   for i in RA'range loop
      dd := D (RA (i));
   end loop;
end fixce;