This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite]: Add testcase for PR tree-optimization/19910
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 20 Jul 2007 11:48:45 +0200
- Subject: [PATCH, testsuite]: Add testcase for PR tree-optimization/19910
Hello!
This failure magically dissapeared on mainline. The reduced testcase
from the PR was added to testsuite, so we will know when failure
re-appears. Testcase was tested on i686-pc-linux-gnu.
2007-07-20 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/19910
* gcc.dg/pr19910.c: New test.
Uros.
Index: gcc.dg/pr19910.c
===================================================================
--- gcc.dg/pr19910.c (revision 0)
+++ gcc.dg/pr19910.c (revision 126799)
@@ -0,0 +1,16 @@
+/* Contributed by Volker Reichelt <reichelt@gcc.gnu.org>. */
+
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-loop-linear" } */
+
+int a[3];
+
+void foo()
+{
+ int i, j;
+
+ for (i = 1; i >= 0; --i)
+ for (j = i; j >= 0; --j)
+ a[i+j] = 0;
+}
+