summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/sync_iface_test.ads
blob: 4bccd255d7a2d6c4afa48e00694dc068cbfb64c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--  { dg-do compile }
--  { dg-options "-gnatc" }

package Sync_Iface_Test is
   type Iface is limited interface;
   procedure Do_Test
     (Container : in out Iface;
      Process   : access procedure (E : Natural)) is abstract;
   
   protected type Buffer is new Iface with
      overriding procedure Do_Test
        (Process : access procedure (E : Natural));
   end;
end;