Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr23075.C
blob59e93be48f84fc0d3a240685979e035658d2bb3b
1 // PR c/23075
2 // { dg-do compile }
3 // { dg-options "-O2 -Wreturn-type" }
5 int
6 foo (void)
8   return;       // { dg-error "with no value" }
9 }               // { dg-bogus "no return statement" }