summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/restricted_pkg.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/specs/restricted_pkg.ads')
-rw-r--r--gcc/testsuite/gnat.dg/specs/restricted_pkg.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/specs/restricted_pkg.ads b/gcc/testsuite/gnat.dg/specs/restricted_pkg.ads
new file mode 100644
index 00000000000..cfd84699426
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/specs/restricted_pkg.ads
@@ -0,0 +1,10 @@
+-- { dg-do compile }
+-- { dg-options "-gnatc" }
+
+pragma Restrictions (No_Entry_Queue);
+package Restricted_Pkg is
+ type Iface is limited interface;
+ protected type PO is new Iface with
+ procedure Dummy;
+ end;
+end;