Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/limited1_inner.ads @ 143:76e1cf5455ef
add cbc_gc test
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 19:24:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
with Ada.Finalization; package Limited1_Inner is type Limited_Type is new Ada.Finalization.Limited_Controlled with record Self : access Limited_Type := Limited_Type'Unchecked_Access; end record; overriding procedure Finalize (X : in out Limited_Type); type Inner_Type (What : Boolean) is record case What is when False => null; when True => L : Limited_Type; end case; end record; function Make_Inner return Inner_Type; end;