URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
-- { dg-do run }
|
-- { dg-do run }
|
with System;
|
with System;
|
|
|
procedure Protected_Self_Ref1 is
|
procedure Protected_Self_Ref1 is
|
|
|
protected type P is
|
protected type P is
|
procedure Foo;
|
procedure Foo;
|
end P;
|
end P;
|
|
|
protected body P is
|
protected body P is
|
procedure Foo is
|
procedure Foo is
|
Ptr : access P; -- here P denotes the type P
|
Ptr : access P; -- here P denotes the type P
|
T : Integer;
|
T : Integer;
|
A : System.Address;
|
A : System.Address;
|
begin
|
begin
|
Ptr := P'Access; -- here P denotes the "this" instance of P
|
Ptr := P'Access; -- here P denotes the "this" instance of P
|
T := P'Size;
|
T := P'Size;
|
A := P'Address;
|
A := P'Address;
|
end;
|
end;
|
end P;
|
end P;
|
|
|
O : P;
|
O : P;
|
begin
|
begin
|
O.Foo;
|
O.Foo;
|
end Protected_Self_Ref1;
|
end Protected_Self_Ref1;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.