2 procedure Check_Displace_Generation
is
6 type Base_1
is interface
;
7 function F_1
(X
: Base_1
) return Integer is abstract;
9 type Base_2
is interface
;
10 function F_2
(X
: Base_2
) return Integer is abstract;
12 type Concrete
is new Base_1
and Base_2
with null record;
13 function F_1
(X
: Concrete
) return Integer;
14 function F_2
(X
: Concrete
) return Integer;
20 function F_1
(X
: Concrete
) return Integer is
25 function F_2
(X
: Concrete
) return Integer is
34 function Make_Concrete
return Concrete
is
40 B_1
: Base_1
'Class := Make_Concrete
;
41 B_2
: Base_2
'Class := Make_Concrete
;
45 raise Program_Error
with "bad B_1.F_1 call";
48 raise Program_Error
with "bad B_2.F_2 call";
50 end Check_Displace_Generation
;