noreturn-1.c: Move noreturn warning line.

* gcc.dg/noreturn-1.c: Move noreturn warning line.
        * gcc.dg/return-type-1.c: Move control reaches end warning line.

From-SVN: r63598
This commit is contained in:
Richard Henderson 2003-02-28 16:53:34 -08:00 committed by Richard Henderson
parent d5b11fba00
commit 3f53c0dc86
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-02-28 Richard Henderson <rth@redhat.com>
* gcc.dg/noreturn-1.c: Move noreturn warning line.
* gcc.dg/return-type-1.c: Move control reaches end warning line.
2003-02-28 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/pch/pch.exp: Change .pch to .gch.

View File

@ -7,8 +7,8 @@ extern void exit (int);
extern void foo1(void) __attribute__ ((__noreturn__));
void
foo1(void)
{
} /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */
{ /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */
}
extern void foo2(void) __attribute__ ((__noreturn__));
void

View File

@ -5,5 +5,5 @@
/* { dg-options "-O -Wreturn-type" } */
int
foo(void)
{
} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
{ /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
}