OSDN Git Service

* gnat.dg/specs/iface_eq_test.ads,
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 May 2008 12:38:31 +0000 (12:38 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 May 2008 12:38:31 +0000 (12:38 +0000)
gnat.dg/specs/iface_eq_test-child.ads: New test.
* gnat.dg/specs/self_class.ads: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136073 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/iface_eq_test-child.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/iface_eq_test.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/self_class.ads [new file with mode: 0644]

index 8149701..1bfa4d2 100644 (file)
@@ -1,3 +1,9 @@
+2008-05-28  Arnaud Charlet  <charlet@adacore.com>
+
+       * gnat.dg/specs/iface_eq_test.ads,
+       gnat.dg/specs/iface_eq_test-child.ads: New test.
+       * gnat.dg/specs/self_class.ads: New test.
+
 2008-05-27  Andy Hutchinson  <hutchinsonandy@aim.com>
 
        * gcc.dg/tree-ssa/data-dep-1.c: Skip test for avr-*-* too much code.
diff --git a/gcc/testsuite/gnat.dg/specs/iface_eq_test-child.ads b/gcc/testsuite/gnat.dg/specs/iface_eq_test-child.ads
new file mode 100644 (file)
index 0000000..028bb1b
--- /dev/null
@@ -0,0 +1,9 @@
+--  { dg-do compile }
+--  { dg-options "-gnatc" }
+generic                    
+package Iface_Eq_Test.Child is
+   protected type PO is new Iface with
+      procedure Dummy;
+   end;
+   overriding function "=" (L, R : access PO) return Boolean;
+end;      
diff --git a/gcc/testsuite/gnat.dg/specs/iface_eq_test.ads b/gcc/testsuite/gnat.dg/specs/iface_eq_test.ads
new file mode 100644 (file)
index 0000000..36f9031
--- /dev/null
@@ -0,0 +1,6 @@
+--  { dg-do compile }
+generic         
+package Iface_Eq_Test is
+   type Iface is limited interface;
+   function "=" (L, R : access Iface) return Boolean is abstract;
+end;               
diff --git a/gcc/testsuite/gnat.dg/specs/self_class.ads b/gcc/testsuite/gnat.dg/specs/self_class.ads
new file mode 100644 (file)
index 0000000..56c7ab4
--- /dev/null
@@ -0,0 +1,9 @@
+--  { dg-do compile }
+
+package Self_Class is
+   type P6 is private;
+private
+   type P6 is tagged record
+      Self : access P6'Class;
+   end record;
+end Self_Class;