* [PATCH] tree-optimization/110376 - testcase for fixed bug
@ 2023-07-04 10:32 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-07-04 10:32 UTC (permalink / raw)
To: gcc-patches
This is a new testcase for the fixed bug.
Tested on x86_64-unknown-linux-gnu, pushed.
PR tree-optimization/110376
* gcc.dg/torture/pr110376.c: New testcase.
---
gcc/testsuite/gcc.dg/torture/pr110376.c | 39 +++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 gcc/testsuite/gcc.dg/torture/pr110376.c
diff --git a/gcc/testsuite/gcc.dg/torture/pr110376.c b/gcc/testsuite/gcc.dg/torture/pr110376.c
new file mode 100644
index 00000000000..86bfe80f665
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr110376.c
@@ -0,0 +1,39 @@
+/* { dg-do run } */
+
+int f, g, a, c;
+unsigned char k = 204;
+unsigned char *l = &k;
+short m, n;
+static long b;
+unsigned *h = &c;
+unsigned **i = &h;
+int p(unsigned char *aa) {
+ aa[0] && aa[1] && aa[2];
+ return 1;
+}
+int q(unsigned char c) {
+ unsigned char d[] = {c};
+ int e = p(d);
+ return e;
+}
+int r(int j, int h) {
+ f = h / 4;
+ g = f * 6;
+ return g;
+}
+short s() { return **i; }
+void t() {
+ for (; r(9, *l) <= 1;) {
+ int j;
+ long *o = &b;
+ *o = 0 >= 0;
+ for (; q(0) + a > 1; a++)
+ *o = 0 > m;
+ j = s();
+ for (; a;)
+ n = j;
+ for (; (unsigned char)(1 + k + b) + k; --k)
+ ;
+ }
+}
+int main() { t(); }
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-04 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-04 10:32 [PATCH] tree-optimization/110376 - 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).