view gcc/testsuite/gnat.dg/discr36.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 compile }

with Discr36_Pkg;

package body Discr36 is

  function N return Natural is begin return 0; end;

  type Arr is array (1 .. N) of R;

  function My_Func is new Discr36_Pkg.Func (Arr);

  procedure Proc is
    A : constant Arr := My_Func;
  begin
    null;
  end;

end Discr36;