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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [protected_self_ref2.adb] - Rev 858

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.