2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr23075.c
blob2d85fb0650fd9573df59f6d119df9870be23c3b6
1 /* PR c/23075 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wreturn-type" } */
5 int
6 foo (void)
8 return; /* { dg-warning "with no value" } */
9 } /* { dg-bogus "control reaches end" } */
11 int
12 bar (void)
14 } /* { dg-warning "control reaches end" } */