Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/prot2_pkg2.adb @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
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;