summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/iface1.ads
blob: bfe90a30320b69a62e9b94b7e45dcd15d6459c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;