ipa-6.c: New.

2006-11-26  Razya Ladklesky  <razya@il.ibm.com>

        * testsuite/gcc.dg/ipa/ipa-6.c: New.

From-SVN: r119222
This commit is contained in:
Razya Ladelsky 2006-11-26 10:29:28 +00:00 committed by Razya Ladelsky
parent 639b490be5
commit 9dedcfe16a
2 changed files with 35 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2006-11-26 Razya Ladklesky <razya@il.ibm.com>
* testsuite/gcc.dg/ipa/ipa-6.c: New.
2006-11-26 Razya Ladklesky <razya@il.ibm.com>
PR tree-optimization/29122

View file

@ -0,0 +1,31 @@
/* PR middle-end/29122 */
/* { dg-do compile } */
/* { dg-options "-O3 -fipa-cp -fno-early-inlining" } */
int
dont_inline (int);
int
bar (int b, int c)
{
return dont_inline (c);
}
int
foo (int a)
{
if (a++ > 0)
bar (a, 3);
foo (7);
}
int
main ()
{
foo (7);
return 0;
}