2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / inline-3.c
blob2998989931518e43f447b5922af071582d2cdfd3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-einline --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 " 1 "einline"} } */
31 /* { dg-final { scan-tree-dump-times "Inlining inline_me_too " 1 "einline"} } */