runtime: copy more of scheduler from Go 1.7 runtime
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / inline-3.C
blob0ad366e7daf6868f75ad5fb4ec3b56e47c1e4fbb
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-einline --param max-early-inliner-iterations=5" } */
3 /* { dg-add-options bind_pic_locally } */
5 #include <algorithm>
7 void foo(const char *s);
9 void
10 inline_me (char *x)
12   foo(x);
15 static void
16 inline_me_too (char *x)
18   foo(x);
21 int main(int argc, char **argv)
23   std::for_each (argv, argv + argc, inline_me);
24   std::for_each (argv, argv + argc, inline_me_too);
27 /* { dg-final { scan-tree-dump-times "Inlining void inline_me\\(" 1 "einline"} } */
28 /* { dg-final { scan-tree-dump-times "Inlining void inline_me_too\\(" 1 "einline"} } */