2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / noinline2.adb
blob3abb33aaa68b9d821e591138f69c0aa4563b0c79
1 -- { dg-do compile }
2 -- { dg-options "-O2 -fdump-tree-optimized" }
4 package body Noinline2 is
6 function Inner (A, B : Integer) return Integer;
7 pragma No_Inline (Inner);
9 function Inner (A, B : Integer) return Integer is
10 begin
11 return A + B;
12 end;
14 function F (A, B : Integer) return Integer is
15 begin
16 return Inner (A, B) + Inner (A, -B);
17 end;
19 end Noinline2;
21 -- { dg-final { scan-tree-dump-times "noinline2.inner" 2 "optimized" } }