public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5378] tree-optimization/108523 - testcase for the bug
@ 2023-01-26  7:39 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-01-26  7:39 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1f6d05e9ad858b59b824f57d09400adcb2c5e4ad

commit r13-5378-g1f6d05e9ad858b59b824f57d09400adcb2c5e4ad
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Jan 26 08:38:35 2023 +0100

    tree-optimization/108523 - testcase for the bug
    
    This adds a reduced testcase for the PR.
    
            PR tree-optimization/108523
            * gcc.dg/torture/pr108523.c: New testcase.

Diff:
---
 gcc/testsuite/gcc.dg/torture/pr108523.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/torture/pr108523.c b/gcc/testsuite/gcc.dg/torture/pr108523.c
new file mode 100644
index 00000000000..a04160baf2a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr108523.c
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+
+int g_149, g_167, g_481;
+int main() {
+  int *l_1478 = &g_149;
+  *l_1478 ^= g_167;
+lbl_1481:
+  for (;;) {
+    g_481 = 1;
+    for (; g_481 < 100000; g_481 += 1) {
+      g_167 ^= *l_1478;
+      if (g_149)
+        goto lbl_1481;
+    }
+  }
+}

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

only message in thread, other threads:[~2023-01-26  7:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26  7:39 [gcc r13-5378] tree-optimization/108523 - testcase for the bug Richard Biener

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).