1  /* PR c/7652 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wimplicit-fallthrough" } */
       4  
       5  /* Another nested switch, and with an initialization on top.  Check that
       6     we do not warn here as the case 3 falls through to break.  */
       7  
       8  void
       9  f (int i)
      10  {
      11    switch (i)
      12      {
      13      case 1:
      14        {
      15  	int t = 3;
      16  	switch (i)
      17  	  {
      18  	  case 3:
      19  	    i += 10;
      20  	  case 4:
      21  	    break;
      22  	  }
      23  	break;
      24        }
      25      case 2:
      26        --i;
      27        break;
      28      }
      29  }