(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
Wimplicit-fallthrough-9.c
       1  /* PR c/7652 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wimplicit-fallthrough" } */
       4  
       5  /* Test we don't remove FALLTHROUGH () too early.  */
       6  
       7  extern void h (int);
       8  
       9  void
      10  g (int i)
      11  {
      12    switch (i)
      13      {
      14      case 1:
      15        {
      16  	switch (i)
      17  	  {
      18  	    case 3:
      19  	      h (7);
      20  	      __attribute__((fallthrough));
      21  	    case 4:;
      22  	  }
      23        }
      24      case 2:;
      25      }
      26  }