URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
|
|
with System;
|
with System;
|
procedure Interface1 is
|
procedure Interface1 is
|
package Pkg is
|
package Pkg is
|
type I1 is interface;
|
type I1 is interface;
|
type Root is tagged record
|
type Root is tagged record
|
Data : string (1 .. 300);
|
Data : string (1 .. 300);
|
end record;
|
end record;
|
type DT is new Root and I1 with null record;
|
type DT is new Root and I1 with null record;
|
end Pkg;
|
end Pkg;
|
use Pkg;
|
use Pkg;
|
use type System.Address;
|
use type System.Address;
|
Obj : DT;
|
Obj : DT;
|
procedure IW (O : I1'Class) is
|
procedure IW (O : I1'Class) is
|
begin
|
begin
|
if O'Address /= Obj'Address then
|
if O'Address /= Obj'Address then
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end IW;
|
end IW;
|
begin
|
begin
|
IW (Obj);
|
IW (Obj);
|
end Interface1;
|
end Interface1;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.