OSDN Git Service

* gcc.dg/noreturn-1.c: Move noreturn warning line.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Mar 2003 00:53:34 +0000 (00:53 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Mar 2003 00:53:34 +0000 (00:53 +0000)
        * gcc.dg/return-type-1.c: Move control reaches end warning line.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63598 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 96d3d97..1e2a7be 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 6e72f36..3bf62c1 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 2507caf..037dbbf 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" } */
+}