URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
|
|
procedure interface3 is
|
procedure interface3 is
|
--
|
--
|
package Pkg is
|
package Pkg is
|
type Foo is interface;
|
type Foo is interface;
|
subtype Element_Type is Foo'Class;
|
subtype Element_Type is Foo'Class;
|
--
|
--
|
type Element_Access is access Element_Type;
|
type Element_Access is access Element_Type;
|
type Elements_Type is array (1 .. 1) of Element_Access;
|
type Elements_Type is array (1 .. 1) of Element_Access;
|
type Elements_Access is access Elements_Type;
|
type Elements_Access is access Elements_Type;
|
--
|
--
|
type Vector is tagged record
|
type Vector is tagged record
|
Elements : Elements_Access;
|
Elements : Elements_Access;
|
end record;
|
end record;
|
--
|
--
|
procedure Test (Obj : Vector);
|
procedure Test (Obj : Vector);
|
end;
|
end;
|
--
|
--
|
package body Pkg is
|
package body Pkg is
|
procedure Test (Obj : Vector) is
|
procedure Test (Obj : Vector) is
|
Elements : Elements_Access := new Elements_Type;
|
Elements : Elements_Access := new Elements_Type;
|
--
|
--
|
begin
|
begin
|
Elements (1) := new Element_Type'(Obj.Elements (1).all);
|
Elements (1) := new Element_Type'(Obj.Elements (1).all);
|
end;
|
end;
|
end;
|
end;
|
--
|
--
|
begin
|
begin
|
null;
|
null;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.