Fix testcases up after recent -Wreturn-type change
I missed these two testcases in the diff when looking for testcases that fail. The change is the same as what was done for gcc.dg/Wreturn-mismatch-2.c. Pushed as obvious after a quick test. gcc/testsuite/ChangeLog: * gcc.dg/Wreturn-mismatch-2a.c: Change dg-warning for the last -Wreturn-type to dg-bogus. * gcc.dg/Wreturn-mismatch-6.c: Likewise. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
This commit is contained in:
parent
e6e7b477bb
commit
d71139982a
2 changed files with 2 additions and 2 deletions
|
@ -37,5 +37,5 @@ int
|
|||
f7 (void)
|
||||
{
|
||||
return f1 (); /* { dg-error "void value not ignored as it ought to be" } */
|
||||
} /* { dg-warning "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
|
||||
} /* { dg-bogus "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
|
||||
|
||||
|
|
|
@ -37,4 +37,4 @@ int
|
|||
f7 (void)
|
||||
{
|
||||
return f1 (); /* { dg-error "void value not ignored as it ought to be" } */
|
||||
} /* { dg-warning "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
|
||||
} /* { dg-bogus "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
|
||||
|
|
Loading…
Add table
Reference in a new issue