Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gnat.dg / noinline2.adb
blob121aee3de910c4059d944a5d3289a377b6c67043
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" 4 "optimized" } }