diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/discr36.adb')
-rw-r--r-- | gcc/testsuite/gnat.dg/discr36.adb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/discr36.adb b/gcc/testsuite/gnat.dg/discr36.adb new file mode 100644 index 00000000000..64d95558e88 --- /dev/null +++ b/gcc/testsuite/gnat.dg/discr36.adb @@ -0,0 +1,19 @@ +-- { 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; |