OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [protected_self_ref1.adb] - Diff between revs 304 and 338

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;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.