libstdc++: Define __glibcxx_assert_fail for non-verbose build [PR115585]
[official-gcc.git] / gcc / testsuite / gcc.dg / pr23075.c
blob28baf41006a3394ea06a28523b168f2ff478ee92
1 /* PR c/23075 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fpermissive -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" } */