rt_gccstream/gcc/testsuite/gnat.dg/iface1.ads

13 lines
408 B
Ada

generic
type Data is private;
package Iface1 is
type Future is synchronized interface;
type Any_Future is access all Future;
procedure Get (This : in out Future; P : out Data) is abstract;
procedure Set (This : in out Future; P : in Data) is abstract;
type Reusable_Future is synchronized interface and Future;
type Any_Reusable_Future is access all Reusable_Future'Class;
end Iface1;