noreturn-1.c: Move noreturn warning line.
authorRichard Henderson <rth@redhat.com>
Sat, 1 Mar 2003 00:53:34 +0000 (16:53 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 1 Mar 2003 00:53:34 +0000 (16:53 -0800)
        * gcc.dg/noreturn-1.c: Move noreturn warning line.
        * gcc.dg/return-type-1.c: Move control reaches end warning line.

From-SVN: r63598

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noreturn-1.c
gcc/testsuite/gcc.dg/return-type-1.c

index 96d3d97335a4e1477e55ab2b9972da99323a6018..1e2a7be49458279e86e125232ea9f27f45f96e61 100644 (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.
index 6e72f362bf36fe54f0be5e2e0cae85a1fcf2d0fc..3bf62c15b40c10e4b84812e6142ef69a847200e2 100644 (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
index 2507cafa5e4f872b42109cb2a6a15737946ad897..037dbbf08239b5b4e542e737a18cdcca3d3d6430 100644 (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" } */
+}