summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/bug_elaboration_code.adb
blob: 0aa7abe808a6150122b6990ddc683684f6b3a5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;