* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gnat.dg / inline9_pkg.adb
blobb1eb5c07bf6bb4b84caefa999ebc9eeebc96a00f
1 package body Inline9_Pkg is
3 procedure Test (I : Integer) is
5 function F (J : Integer) return Integer is
6 begin
7 return I - J;
8 end;
10 type FPT is access function (I : Integer) return Integer;
12 P : FPT := F'Access;
14 begin
15 if I /= P (I) then
16 raise Program_Error;
17 end if;
18 end;
20 end Inline9_Pkg;