summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr19910.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-20 09:43:52 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-20 09:43:52 +0000
commit2f1c3720b390eaa42630697678641df0e955ea7c (patch)
treefd54315da4eaf25b22e234126120998fcb0957be /gcc/testsuite/gcc.dg/pr19910.c
parentb308ddcf15370d57055c6c52e8e46e06b020d1c1 (diff)
downloadgcc-2f1c3720b390eaa42630697678641df0e955ea7c.tar.gz
PR tree-optimization/19910
* gcc.dg/pr19910.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126799 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr19910.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr19910.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr19910.c b/gcc/testsuite/gcc.dg/pr19910.c
new file mode 100644
index 00000000000..1ee0d213b8a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr19910.c
@@ -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;
+}
+