mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 14:09:53 +08:00
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:
parent
d5b11fba00
commit
3f53c0dc86
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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" } */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user