view gcc/testsuite/gnat.dg/controlled5_pkg.ads @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

with Ada.Finalization; use Ada.Finalization;

package Controlled5_Pkg is

   type Root is tagged private;

   type Inner is new Ada.Finalization.Controlled with null record;

   type T_Root_Class is access all Root'Class;

   function Dummy (I : Integer) return Root'Class;

private

   type Root is tagged record
      F2 : Inner;
   end record;

end Controlled5_Pkg;