view gcc/testsuite/gnat.dg/array21.adb @ 143:76e1cf5455ef

add cbc_gc test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:24:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

-- { 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;