Debian Codegraph @

gcc/testsuite/gcc.dg/pr60440-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Wreturn-type" } */
3
4 /* PR c/60440 */
5 /* Don't warn for a missing return when there was an error
6 on the return stamtent. */
7
8 int f(int a) {
9 return a + b; /* { dg-error "undeclared" } */
10 } /* { dg-bogus "control reaches end of non-void function" } */