This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix gcc.dg/noreturn-1.c
- From: Richard Henderson <rth at twiddle dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Jun 2004 19:52:26 -0700
- Subject: fix gcc.dg/noreturn-1.c
Whee. The line number changed with some of the return expression
frobbing that I did. Clearly I should have noticed this... :-(
r~
* gcc.dg/noreturn-1.c (foo5): Update function does return lineno.
Index: testsuite/gcc.dg/noreturn-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/noreturn-1.c,v
retrieving revision 1.9
diff -u -p -r1.9 noreturn-1.c
--- testsuite/gcc.dg/noreturn-1.c 13 May 2004 06:40:49 -0000 1.9
+++ testsuite/gcc.dg/noreturn-1.c 23 Jun 2004 02:49:06 -0000
@@ -35,8 +35,7 @@ void
foo5(void)
{
return; /* { dg-warning "`noreturn' has a `return' statement" "detect invalid return" } */
-}
-/* { dg-warning "function does return" "detect return from noreturn" { target *-*-* } 37 } */
+} /* { dg-warning "function does return" "detect return from noreturn" } */
extern void foo6(void);
void