re PR tree-optimization/61042 (ICE on valid code at -O3 on x86_64-linux-gnu)
authorJakub Jelinek <jakub@redhat.com>
Tue, 18 Nov 2014 22:13:16 +0000 (23:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 18 Nov 2014 22:13:16 +0000 (23:13 +0100)
PR tree-optimization/61042
* gcc.c-torture/compile/pr61042.c: New test.

From-SVN: r217740

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);
+}