blob: fd92eca655768f29290e0bfaf7b178e9c3d791fe [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */
void bar (void);
void
foo (int a)
{
switch (a)
{
case 4:
if (a >= 3)
if (a <= 5)
bar ();
}
}
/* { dg-final { scan-tree-dump "Folding predicate a_. > 2 to 1" "vrp1" } } */
/* { dg-final { scan-tree-dump "Folding predicate a_. <= 5 to 1" "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */