3 procedure Interface6
is
8 type Rec_Type
is tagged null record;
10 type Rec_Type1
is new TI
16 type Rec_Type2
is new Rec_Type1
and TI2
22 type Rec_Type12
is new Rec_Type1
and TI
and TI2
29 type T
is new Rec_Type1
and TI2
with private;
37 procedure Test_Instance1
is new Test
(T
=> Rec_Type
); -- { dg-error "actual must implement all interfaces of formal \"T\"" }
38 procedure Test_Instance1
is new Test
(T
=> Rec_Type1
); -- { dg-error "actual \"Rec_Type1\" must implement interface \"TI2\"" }
39 procedure Test_Instance2
is new Test
(T
=> Rec_Type2
);
40 procedure Test_Instance12
is new Test
(T
=> Rec_Type12
);