Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gnat.dg
/
task3.adb
blob: a73c2dcb2d618763e3b849efdffeaaf36ca8a305 [
file
] [
log
] [
blame
]
--
{
dg
-
do
compile
}
with
Ada
.
Unchecked_Deallocation
;
package
body
Task3
is
procedure
Destroy
(
Obj
:
in
out
Child_Wrapper
)
is
procedure
Free
is
new
Ada
.
Unchecked_Deallocation
(
Child
,
Child_Ptr
);
begin
Free
(
Obj
.
Ptr
);
end
Destroy
;
end
Task3
;