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:
parent
754e97fbbe
commit
e9fcdd9fdf
@ -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
|
||||
|
17
gcc/testsuite/g++.dg/torture/pr46154.C
Normal file
17
gcc/testsuite/g++.dg/torture/pr46154.C
Normal 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 ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user