view gcc/testsuite/gnat.dg/spark3.adb @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

--  { dg-do compile }

procedure SPARK3 (X : in out Integer) with SPARK_Mode is

   procedure Q (X : in out Integer) with SPARK_Mode => Off is
   begin
      X := X + 1;
   end Q;

   procedure R (X : in out Integer);

   procedure R (X : in out Integer) with SPARK_Mode => Off is
   begin
      Q (X);
   end R;

begin
   R (X);
   X := X + 1;
end SPARK3;