Commit 3f53c0dc by Richard Henderson Committed by Richard Henderson

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
parent d5b11fba
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> 2003-02-28 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/pch/pch.exp: Change .pch to .gch. * gcc.dg/pch/pch.exp: Change .pch to .gch.
......
...@@ -7,8 +7,8 @@ extern void exit (int); ...@@ -7,8 +7,8 @@ extern void exit (int);
extern void foo1(void) __attribute__ ((__noreturn__)); extern void foo1(void) __attribute__ ((__noreturn__));
void void
foo1(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__)); extern void foo2(void) __attribute__ ((__noreturn__));
void void
......
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
/* { dg-options "-O -Wreturn-type" } */ /* { dg-options "-O -Wreturn-type" } */
int int
foo(void) 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" } */ }
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