aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/interface7.adb
blob: 90417fed05f1a55264a7602f0d47282d8d02f84b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--  { dg-do compile }

procedure Interface7 is
   type I_Type is interface;

   type A1_Type is tagged null record;
   type A2_Type is new A1_Type and I_Type with null record;

   procedure Test (X : I_Type'Class) is
   begin
      if X in A2_Type then   --  Test
         null;
      end if;
   end Test;

begin null; end;