view gcc/testsuite/gnat.dg/interface_conv.adb @ 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

-- { dg-do run }

procedure Interface_Conv is
   package Pkg is
      type I1 is interface;
      procedure Prim (X : I1) is null;
      type I2 is interface;
      procedure Prim (X : I2) is null;
      type DT is new I1 and I2 with null record;
   end Pkg;
   use Pkg;
   Obj  : DT;
   CW_3 : I2'Class := Obj;
   CW_5 : I1'Class := I1'Class (CW_3);  --  test
begin
   null;
end;