public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] tree-optimization/110640 - testcase for fixed bug
@ 2023-12-14  7:41 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-12-14  7:41 UTC (permalink / raw)
  To: gcc-patches

Pushed.

	PR tree-optimization/110640
	* gcc.dg/torture/pr110640.c: New testcase.
---
 gcc/testsuite/gcc.dg/torture/pr110640.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/torture/pr110640.c

diff --git a/gcc/testsuite/gcc.dg/torture/pr110640.c b/gcc/testsuite/gcc.dg/torture/pr110640.c
new file mode 100644
index 00000000000..7667294dde8
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr110640.c
@@ -0,0 +1,22 @@
+/* { dg-do run } */
+/* { dg-require-effective-target int32plus } */
+
+unsigned short a = 65535;
+int b, f, g;
+int *c = &b;
+long d;
+short e;
+static int *h(int);
+void i() { h(a); }
+int *h(int j) {
+  unsigned char k;
+  for (; e != 8; e = e + 4)
+    k = 0;
+  for (; (unsigned char)(j-181249535) + k <= 1; k++) {
+    *c = d;
+    for (; f; f++)
+      ;
+  }
+  return &g;
+}
+int main() { i(); }
-- 
2.35.3

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

only message in thread, other threads:[~2023-12-14  7:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14  7:41 [PATCH] tree-optimization/110640 - testcase for fixed 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).