diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/generic_disp_pkg.ads')
-rw-r--r-- | gcc/testsuite/gnat.dg/generic_disp_pkg.ads | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/generic_disp_pkg.ads b/gcc/testsuite/gnat.dg/generic_disp_pkg.ads new file mode 100644 index 00000000000..5be54921d83 --- /dev/null +++ b/gcc/testsuite/gnat.dg/generic_disp_pkg.ads @@ -0,0 +1,14 @@ +with Ada.Tags.Generic_Dispatching_Constructor; + +package Generic_Disp_Pkg is + type Iface is interface; + function Constructor (I : not null access Integer) return Iface is abstract; + function Dispatching_Constructor + is new Ada.Tags.Generic_Dispatching_Constructor + (T => Iface, + Parameters => Integer, + Constructor => Constructor); + type DT is new Iface with null record; + overriding + function Constructor (I : not null access Integer) return DT; +end Generic_Disp_Pkg; |