libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr23075-2.c
blob0702ddf1a660ebe4b2781fa3c0db82ed804f08d4
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 "control reaches end" } */
11 int
12 bar (void)
14 } /* { dg-warning "control reaches end" } */