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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [protected_self_ref2.adb] - Rev 414

Go to most recent revision | Compare with Previous | Blame | View Log

--  { dg-do compile }
procedure Protected_Self_Ref2 is
 
   protected type P is
      procedure Foo;
   end P;
 
   protected body P is
      procedure Foo is
	 D : Integer;
      begin
         D := P'Digits;  -- { dg-error "denotes current instance" }
      end;
   end P;
 
begin
   null;
end Protected_Self_Ref2;
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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