public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7750] testsuite: Add testcase for no longer failing PR [PR102645]
@ 2022-03-22  7:42 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-03-22  7:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0

commit r12-7750-g7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Mar 22 08:41:02 2022 +0100

    testsuite: Add testcase for no longer failing PR [PR102645]
    
    This test started ICEing with r12-3876 but stopped with r12-5264.
    
    2022-03-22  Jakub Jelinek  <jakub@redhat.com>
    
            PR tree-optimization/102645
            * gcc.c-torture/compile/pr102645.c: New test.

Diff:
---
 gcc/testsuite/gcc.c-torture/compile/pr102645.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr102645.c b/gcc/testsuite/gcc.c-torture/compile/pr102645.c
new file mode 100644
index 00000000000..f2e0f44ddcd
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr102645.c
@@ -0,0 +1,18 @@
+/* PR tree-optimization/102645 */
+
+volatile int a[1], d;
+int b, c;
+
+int
+main ()
+{
+  if (b && c)
+    for (c = 0; c < 3; c++)
+      {
+	for (int e = 0; e < 6; e++)
+	  for (int f = 0; f < 12; f++)
+	    d && a[0];
+	continue;
+      }
+  return 0;
+}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-22  7:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22  7:42 [gcc r12-7750] testsuite: Add testcase for no longer failing PR [PR102645] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).