public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4791] tree-optimization/111383 - testcase for fixed PR
@ 2023-10-20 13:53 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-10-20 13:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a1fc2cc0a8a8b97dbc3dc6715fd4f384d9204845

commit r14-4791-ga1fc2cc0a8a8b97dbc3dc6715fd4f384d9204845
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Oct 20 15:52:09 2023 +0200

    tree-optimization/111383 - testcase for fixed PR
    
            PR tree-optimization/111383
            PR tree-optimization/110243
    gcc/testsuite/
            * gcc.dg/torture/pr111383.c: New testcase.

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

diff --git a/gcc/testsuite/gcc.dg/torture/pr111383.c b/gcc/testsuite/gcc.dg/torture/pr111383.c
new file mode 100644
index 000000000000..cce873ba7ba1
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr111383.c
@@ -0,0 +1,29 @@
+/* { dg-do run } */
+/* { dg-require-effective-target int32plus } */
+
+extern void abort (void);
+int a, d = 1625015426;
+char e;
+short b;
+short *f = &b, *g = &b;
+void h(char *k) {
+  char c = *k;
+  for (; c;)
+    ;
+}
+int main()
+{
+  *g = 25330;
+  int i, j;
+  i = 0;
+  for (; *f + d - 1625040257 < 7;)
+    ;
+  for (; i < 4; i++) {
+    j = 0;
+    for (; (d - 1625015511) + (d - 1625015341) + j < 1; j++)
+      h(&e);
+  }
+  if (a != 0)
+    abort ();
+  return 0;
+}

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

only message in thread, other threads:[~2023-10-20 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 13:53 [gcc r14-4791] tree-optimization/111383 - testcase for fixed PR 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).