Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/prot2_pkg2.adb @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +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;