From: Richard Biener Date: Tue, 4 Jul 2023 10:27:56 +0000 (+0200) Subject: tree-optimization/110376 - testcase for fixed bug X-Git-Tag: basepoints/gcc-15~7848 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4800a23d8d14213f9e461cd47e97a5c7271b1a9;p=thirdparty%2Fgcc.git tree-optimization/110376 - testcase for fixed bug This is a new testcase for the fixed bug. PR tree-optimization/110376 * gcc.dg/torture/pr110376.c: New testcase. --- diff --git a/gcc/testsuite/gcc.dg/torture/pr110376.c b/gcc/testsuite/gcc.dg/torture/pr110376.c new file mode 100644 index 000000000000..86bfe80f6658 --- /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(); }