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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

with Unchecked_Deallocation;
 
package body Prot2_Pkg2 is
 
   protected type Rec is
   private
       M : T;
   end Rec;
 
   protected body Rec is end;
 
   procedure Create (B : out Id) is
   begin
       B := new Rec;
   end;
 
   procedure Delete (B : in out Id) is
      procedure Free is new Unchecked_Deallocation(Object => Rec, Name => Id);
   begin
      Free (B);
   end;
 
end Prot2_Pkg2;
 

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.