aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr53550.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr53550.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/pr53550.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr53550.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr53550.c
new file mode 100644
index 000000000..1008f43a7
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr53550.c
@@ -0,0 +1,12 @@
+/* PR tree-optimization/53550 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
+
+int *
+foo (int *x)
+{
+ int *a = x + 10, *b = x, *c = a;
+ while (b != c)
+ *--c = *b++;
+ return x;
+}