1 /* PR middle-end/29122 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O3 -fipa-cp -fno-early-inlining" } */ 4 5 int 6 dont_inline (int); 7 8 int bar(int b,int c)9bar (int b, int c) 10 { 11 return dont_inline (c); 12 } 13 14 int foo(int a)15foo (int a) 16 { 17 if (a++ > 0) 18 bar (a, 3); 19 20 foo (7); 21 } 22 23 int main()24main () 25 { 26 int i; 27 for (i = 0; i < 100; i++) 28 foo (7); 29 return 0; 30 } 31 32 33 34