Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/task3.adb @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
-- { 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;