diff mbox

[committed] Add testcase for PR tree-optimization/61042

Message ID 20141118221420.GV1745@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Nov. 18, 2014, 10:14 p.m. UTC
Hi!

This PR got fixed by a fix for another PR, but I've committed
the testcase to the testsuite for better coverage.

2014-11-18  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/61042
	* gcc.c-torture/compile/pr61042.c: New test.


	Jakub
diff mbox

Patch

--- gcc/testsuite/gcc.c-torture/compile/pr61042.c.jj	2014-11-18 14:23:56.004671762 +0100
+++ gcc/testsuite/gcc.c-torture/compile/pr61042.c	2014-11-18 14:23:35.000000000 +0100
@@ -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);
+}