URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
-- { dg-options "-gnatp" }
|
-- { dg-options "-gnatp" }
|
|
|
procedure Lhs_View_Convert is
|
procedure Lhs_View_Convert is
|
|
|
type Root is tagged record
|
type Root is tagged record
|
RV : Natural;
|
RV : Natural;
|
end record;
|
end record;
|
|
|
type Derived is new Root with null record;
|
type Derived is new Root with null record;
|
|
|
Root_Instance : Root := (RV => 1);
|
Root_Instance : Root := (RV => 1);
|
|
|
Derived_Instance : Derived;
|
Derived_Instance : Derived;
|
|
|
procedure Process is
|
procedure Process is
|
X : Natural := Derived_Instance.RV;
|
X : Natural := Derived_Instance.RV;
|
begin
|
begin
|
null;
|
null;
|
end;
|
end;
|
begin
|
begin
|
Derived_Instance.RV := 2;
|
Derived_Instance.RV := 2;
|
|
|
Root (Derived_Instance) := Root (Root_Instance);
|
Root (Derived_Instance) := Root (Root_Instance);
|
|
|
if Derived_Instance.RV /= Root_Instance.RV then
|
if Derived_Instance.RV /= Root_Instance.RV then
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.