1 /* { dg-options "-Os -fdump-ipa-inline-details" } */ 2 int foo (void); test(int a)3int test(int a) 4 { 5 if (a>100) 6 { 7 foo(); 8 foo(); 9 foo(); 10 foo(); 11 foo(); 12 foo(); 13 foo(); 14 foo(); 15 } 16 } 17 int main()18main() 19 { 20 for (int i=0;i<100;i++) 21 test(i); 22 } 23 /* { dg-final { scan-ipa-dump "Inlined 2 calls" "inline" } } */ 24