2 -- { dg-options "-gnatp" }
4 procedure Lhs_View_Convert
is
6 type Root
is tagged record
10 type Derived
is new Root
with null record;
12 Root_Instance
: Root
:= (RV
=> 1);
14 Derived_Instance
: Derived
;
17 X
: Natural := Derived_Instance
.RV
;
22 Derived_Instance
.RV
:= 2;
24 Root
(Derived_Instance
) := Root
(Root_Instance
);
26 if Derived_Instance
.RV
/= Root_Instance
.RV
then