This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 ();
+ }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]