1/* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp"  } */
2/* { dg-add-options bind_pic_locally } */
3
4void test2 (int);
5int
6test (int a)
7{
8   int i;
9   for (i=0; i<a; i++)
10{
11     test2(a);
12     test2(a);
13}
14}
15int
16m()
17{
18  test (10);
19}
20/* { dg-final { scan-ipa-dump "loop_iterations"  "inline"  } } */
21/* { dg-final { cleanup-ipa-dump "inline" } } */
22