Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / inline-3.c
blobcd441aff6c5d6cd85f95b58a02d3f9149fdc35c0
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-einline-optimized --param max-early-inliner-iterations=2" } */
3 /* { dg-add-options bind_pic_locally } */
5 extern void inlined ();
6 void inline_me_too (void);
7 void inline_through_me (void (*ptr)(void));
8 void
9 inline_me (void)
11 inlined();
14 void main(void)
16 inline_through_me (inline_me);
17 inline_through_me (inline_me_too);
19 void
20 inline_through_me (void (*ptr)(void))
22 ptr();
25 void
26 inline_me_too (void)
28 inlined();
30 /* { dg-final { scan-tree-dump-times "Inlining inline_me/\[0-9\]* " 1 "einline"} } */
31 /* { dg-final { scan-tree-dump-times "Inlining inline_me_too/\[0-9\]* " 1 "einline"} } */