summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/iface_test.ads
blob: d093c28226fe46be2cadb42c16d5072f11beddd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Iface_Test is
   type Iface_1 is interface;
   type Iface_2 is interface;
   
   procedure Prepare_Select
     (DB   : Iface_1;
      Iter : in out Iface_2'Class) is abstract; 
        
   type DT_1 is new Iface_1 with null record;
        
   type Iterator is new Iface_2 with record
      More : Boolean;
   end record;

   overriding procedure Prepare_Select
     (DB   : DT_1;
      Iter : in out Standard.Iface_Test.Iface_2'Class);
end;