c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / discr36.adb
blob64d95558e88524ffeac62721d6b63003e6325c8e
1 -- { dg-do compile }
3 with Discr36_Pkg;
5 package body Discr36 is
7 function N return Natural is begin return 0; end;
9 type Arr is array (1 .. N) of R;
11 function My_Func is new Discr36_Pkg.Func (Arr);
13 procedure Proc is
14 A : constant Arr := My_Func;
15 begin
16 null;
17 end;
19 end Discr36;