aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr61042.c10
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5e889f7..ad651fa 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-18 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/61042
+ * gcc.c-torture/compile/pr61042.c: New test.
+
2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
* gcc.dg/atomic/c11-atomic-exec-5.c (dg-timeout-factor): New
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr61042.c b/gcc/testsuite/gcc.c-torture/compile/pr61042.c
new file mode 100644
index 0000000..43a4319
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr61042.c
@@ -0,0 +1,10 @@
+/* PR tree-optimization/61042 */
+
+int a, b, c[1], d, f;
+
+void
+foo ()
+{
+ for (; b; b++)
+ c[0] = c[f] && (d = a);
+}