This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Testcase for PR46154
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 4 Nov 2010 14:55:09 +0100 (CET)
- Subject: [PATCH] Testcase for PR46154
Committed.
Richard.
2010-11-03 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46154
* g++.dg/torture/pr46154.C: New testcase.
Index: gcc/testsuite/g++.dg/torture/pr46154.C
===================================================================
*** gcc/testsuite/g++.dg/torture/pr46154.C (revision 0)
--- gcc/testsuite/g++.dg/torture/pr46154.C (revision 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 ();
+ }