aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr46799.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr46799.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr46799.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr46799.c b/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr46799.c
new file mode 100644
index 000000000..575e12c55
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr46799.c
@@ -0,0 +1,12 @@
+/* PR debug/46799 */
+/* { dg-do compile } */
+/* { dg-options "-O -ftree-parallelize-loops=2 -fno-tree-dce -ftree-pre -fcompare-debug" } */
+
+int
+foo (int i, int *a)
+{
+ int e;
+ for (; i; i++)
+ e = *a;
+ return e;
+}