aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wswitch-unreachable-2.c
blob: 8f57392d842357d3d2dcba92908df21a5c1b8961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c/71249 */
/* { dg-do compile } */

int
f (int i)
{
  switch (i)
    {
      {
	int j;
      foo:
	return i; /* { dg-bogus "statement will never be executed" } */
      };
    case 3:
      goto foo;
    }
  return i;
}