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

package body Opt64_PKG is
   
   procedure Encode (X : Integer) is
      result : Hash;
   begin
      case X is
         when 1 => result := "1";
         when 2 => result := "2";
         when 3 => result := "3";
         when others => Result := "?";
      end case;     
      Last_Hash := Result;
   end;
end;