mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Add test case for PR 110405
PR was fixed bu one of the other patches. * gcc.dg/pr110405.c: New.
This commit is contained in:
14
gcc/testsuite/gcc.dg/pr110405.c
Normal file
14
gcc/testsuite/gcc.dg/pr110405.c
Normal file
@@ -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" } } */
|
||||
|
||||
Reference in New Issue
Block a user