Commit 1cc3d085 by Richard Henderson Committed by Richard Henderson

* gcc.dg/noreturn-1.c (foo5): Update function does return lineno.

From-SVN: r83535
parent e6b5a630
2006-06-22 Richard Henderson <rth@redhat.com>
* gcc.dg/noreturn-1.c (foo5): Update function does return lineno.
2004-06-22 Loren James Rittle <ljrittle@acm.org> 2004-06-22 Loren James Rittle <ljrittle@acm.org>
* gcc.dg/builtins-config.h: Handle FreeBSD. * gcc.dg/builtins-config.h: Handle FreeBSD.
......
...@@ -35,8 +35,7 @@ void ...@@ -35,8 +35,7 @@ void
foo5(void) foo5(void)
{ {
return; /* { dg-warning "`noreturn' has a `return' statement" "detect invalid return" } */ return; /* { dg-warning "`noreturn' has a `return' statement" "detect invalid return" } */
} } /* { dg-warning "function does return" "detect return from noreturn" } */
/* { dg-warning "function does return" "detect return from noreturn" { target *-*-* } 37 } */
extern void foo6(void); extern void foo6(void);
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment