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: Add a testcase for PR 41961


Hi,

I am checking in this patch to add a testcase for PR 41961.


H.J.
----
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 154747)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2009-11-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR tree-optimization/41961
+	* g++.dg/tree-ssa/pr41961.C: New.
+
 2009-11-29  Ira Rosen  <irar@il.ibm.com>
 
 	PR tree-optimization/42193
Index: g++.dg/tree-ssa/pr41961.C
===================================================================
--- g++.dg/tree-ssa/pr41961.C	(revision 0)
+++ g++.dg/tree-ssa/pr41961.C	(revision 0)
@@ -0,0 +1,15 @@
+// { dg-do compile }
+// { dg-require-effective-target pthread }
+// { dg-options "-O3 -ftree-parallelize-loops=2" }
+
+struct A
+{
+    char c[17];
+      void foo();
+};
+
+void A::foo()
+{
+    for (int i = 0; i < 17; ++i)
+          c[i] = 0;
+}


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