summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr46215.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/graphite/pr46215.c')
-rw-r--r--gcc/testsuite/gcc.dg/graphite/pr46215.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/graphite/pr46215.c b/gcc/testsuite/gcc.dg/graphite/pr46215.c
new file mode 100644
index 000000000..cf7b07f20
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr46215.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-O -fstrict-overflow -fno-tree-ch -ftree-loop-linear" } */
+
+extern int y[], x1[], x2[];
+void
+foo (long n)
+{
+ int i, j;
+ for (i = 0; i < n; i++)
+ for (j = 0; j < n; j += 2)
+ y[i] = x1[i + j] * x2[i + j];
+}