1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-einline --param max-early-inliner-iterations=3" } */
3 /* { dg-add-options bind_pic_locally } */
6 extern "C" int puts(const char *s);
9 template <class T, class E> void
10 foreach (T b, T e, void (*ptr)(E))
23 inline_me_too (char *x)
28 int main(int argc, char **argv)
30 foreach (argv, argv + argc, inline_me);
31 foreach (argv, argv + argc, inline_me_too);
34 /* { dg-final { scan-tree-dump-times "Inlining void inline_me\\(" 1 "einline"} } */
35 /* { dg-final { scan-tree-dump-times "Inlining void inline_me_too\\(" 1 "einline"} } */