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

with System;

procedure Array21 is

  type Index_T is mod System.Memory_Size;
  type Arr
    is array (Index_T range Index_T'Last/2-3 .. Index_T'Last/2+3) of Integer;
  C : constant Arr := (1, others => 2);

begin
  if C /= (1, 2, 2, 2, 2, 2, 2) then
    raise Program_Error;
  end if;
end;