blob: 8664b0d847c6ae2532f079f6ddc51814da1dc9c6 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-cfg" } */
extern void foo (void);
extern int i;
void
bar (void)
{
switch (i)
{
case 0:
foo ();
break;
case 1:
break;
}
switch (i)
{
case 0:
foo ();
break;
case 1:
break;
}
}
/* { dg-final { scan-tree-dump-times "case 1:" 0 "cfg" } } */
/* { dg-final { cleanup-tree-dump "cfg" } } */