]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR tree-optimization/61042
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Nov 2014 22:13:16 +0000 (22:13 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Nov 2014 22:13:16 +0000 (22:13 +0000)
* gcc.c-torture/compile/pr61042.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217740 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr61042.c [new file with mode: 0644]

index 5e889f7cfcc715bff8610afc3cc5db32a087d0c4..ad651fa7830e24f3549f94eb735555e572d445ab 100644 (file)
@@ -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 (file)
index 0000000..43a4319
--- /dev/null
@@ -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);
+}