| 1 |
-- { dg-do compile } |
| 2 |
|
| 3 |
procedure Class_Wide5 is |
| 4 |
type B is interface; |
| 5 |
type B_Child is new B with null record; |
| 6 |
type B_Ptr is access B'Class; |
| 7 |
|
| 8 |
procedure P (Obj : B_Ptr) is begin null; end; |
| 9 |
begin |
| 10 |
P (new B_child); -- Test |
| 11 |
end Class_Wide5; |