(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
Wswitch-unreachable-2.c
       1  /* PR c/71249 */
       2  /* { dg-do compile } */
       3  
       4  int
       5  f (int i)
       6  {
       7    switch (i)
       8      {
       9        {
      10  	int j;
      11        foo:
      12  	return i; /* { dg-bogus "statement will never be executed" } */
      13        };
      14      case 3:
      15        goto foo;
      16      }
      17    return i;
      18  }