summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/iface1.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/iface1.ads')
-rw-r--r--gcc/testsuite/gnat.dg/iface1.ads12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/iface1.ads b/gcc/testsuite/gnat.dg/iface1.ads
new file mode 100644
index 000000000..bfe90a303
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/iface1.ads
@@ -0,0 +1,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;