view gcc/testsuite/gnat.dg/predicate7.ads @ 145:1830386684a0

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

with Predicate7_Pkg; use Predicate7_Pkg;

package Predicate7 is
   function Always_True (I : My_Int) return Boolean;

   function Identity (I : My_Int ) return Integer with Pre => Always_True (I);

   procedure Foo;

private
   function Identity (I : My_Int ) return Integer is (I);
   function Always_True (I : My_Int) return Boolean is (True);
end;