view gcc/testsuite/gnat.dg/debug6_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

package Debug6_Pkg is

   type Vkind is (Int, Undefined);
   for Vkind use (Int => -2 ** 31, Undefined => 0);

    type Value (Kind : Vkind) is record
       case Kind is
          when Undefined => null;
          when Int       => Value : Integer;
          when others    => null;
       end case;
    end record;

    procedure Process (V : Value);

end Debug6_Pkg;