https://gcc.gnu.org/g:2bb77c52c92f290d2f8fb0a63d74a5f779d8941d

commit r16-4617-g2bb77c52c92f290d2f8fb0a63d74a5f779d8941d
Author: Andrew MacLeod <[email protected]>
Date:   Fri Oct 24 17:32:32 2025 -0400

    Add test case for PR 110405
    
    PR was fixed bu one of the other patches.
    
            * gcc.dg/pr110405.c: New.

Diff:
---
 gcc/testsuite/gcc.dg/pr110405.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/pr110405.c b/gcc/testsuite/gcc.dg/pr110405.c
new file mode 100644
index 000000000000..549cc7bca2a4
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr110405.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
+
+void foo (unsigned long);
+void
+f (unsigned long i)
+{
+  if ((i & 7) == 6)
+    if(i & 1)
+      foo (0);
+}
+
+/* { dg-final { scan-tree-dump-not "foo"  "optimized" } } */
+

Reply via email to