summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42963.c
blob: 8664b0d847c6ae2532f079f6ddc51814da1dc9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* { 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" } } */