c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / prot2_pkg2.adb
blob503cce73d17c1e7ed965672f7308be15f126ae0b
1 with Unchecked_Deallocation;
3 package body Prot2_Pkg2 is
5 protected type Rec is
6 private
7 M : T;
8 end Rec;
10 protected body Rec is end;
12 procedure Create (B : out Id) is
13 begin
14 B := new Rec;
15 end;
17 procedure Delete (B : in out Id) is
18 procedure Free is new Unchecked_Deallocation(Object => Rec, Name => Id);
19 begin
20 Free (B);
21 end;
23 end Prot2_Pkg2;