summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/controller.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/specs/controller.ads')
-rw-r--r--gcc/testsuite/gnat.dg/specs/controller.ads15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/specs/controller.ads b/gcc/testsuite/gnat.dg/specs/controller.ads
new file mode 100644
index 000000000..eff9e0536
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/specs/controller.ads
@@ -0,0 +1,15 @@
+-- { dg-do compile }
+
+with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
+package Controller is
+ type Iface is interface;
+ type Thing is tagged record
+ Name : Unbounded_String;
+ end record;
+ type Object is abstract new Thing and Iface with private;
+private
+ type Object is abstract new Thing and Iface
+ with record
+ Surname : Unbounded_String;
+ end record;
+end Controller;