1 /* { dg-do compile } */
2 /* { dg-options "-O2 -flive-patching=inline-only-static -fdump-tree-einline-optimized" } */
6 extern inline __attribute__((always_inline
)) int foo (int a
);
7 inline __attribute__((always_inline
)) int foo (int a
)
12 static int bar (int b
)
19 sum
= foo (m
) + bar (n
);
23 /* { dg-final { scan-tree-dump "Inlining foo/0 into main/2" "einline" } } */