(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr23075.c
       1  /* PR c/23075 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -Wreturn-type" } */
       4  
       5  int
       6  foo (void)
       7  {
       8    return;	/* { dg-warning "with no value" } */
       9  }		/* { dg-bogus "control reaches end" } */
      10  
      11  int
      12  bar (void)
      13  {
      14  }		/* { dg-warning "control reaches end" } */