re PR tree-optimization/46154 (ICE: failed to reclaim unneeded function with -fipa-cp -fipa-cp-clone)

2010-11-03  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/46154
	* g++.dg/torture/pr46154.C: New testcase.

From-SVN: r166311
This commit is contained in:
Richard Guenther 2010-11-04 13:55:44 +00:00 committed by Richard Biener
parent 754e97fbbe
commit e9fcdd9fdf
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-11-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46154
* g++.dg/torture/pr46154.C: New testcase.
2010-11-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45733

View File

@ -0,0 +1,17 @@
/* { dg-do compile } */
/* { dg-options "-fipa-cp-clone" } */
struct S
{
virtual int foo ()
{
return foo () == 0;
}
virtual void baz ();
};
void A ()
{
S s;
s.foo ();
}