view gcc/testsuite/gnat.dg/bug_elaboration_code.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 Bug_Elaboration_Code is

   procedure Increment_I is
   begin
      I := I + 1;
   end Increment_I;

begin
   I := 5;
   Increment_I;
   J := I;
end Bug_Elaboration_Code;