dwarf2-1.c: Update for return warnings.
authorRichard Henderson <rth@redhat.com>
Thu, 7 Feb 2002 09:08:25 +0000 (01:08 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 7 Feb 2002 09:08:25 +0000 (01:08 -0800)
* gcc.dg/debug/dwarf2-1.c: Update for return warnings.
* gcc.dg/noncompile/920507-1.c, gcc.dg/noncompile/920721-2.c,
gcc.dg/noncompile/label-lineno-1.c, objc.dg/const-str-1.m,
objc.dg/const-str-2.m, objc.dg/method-1.m: Likewise.

From-SVN: r49571

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2-1.c
gcc/testsuite/gcc.dg/noncompile/920507-1.c
gcc/testsuite/gcc.dg/noncompile/920721-2.c
gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c
gcc/testsuite/objc.dg/const-str-1.m
gcc/testsuite/objc.dg/const-str-2.m
gcc/testsuite/objc.dg/method-1.m

index a32e28e5b099e179d2b987ed0ea5a96be7fdefce..af9c9ea4ea99c57ce70a811fcf37ef3be82423dd 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-07  Richard Henderson  <rth@redhat.com>
+
+       * gcc.dg/debug/dwarf2-1.c: Update for return warnings.
+       * gcc.dg/noncompile/920507-1.c, gcc.dg/noncompile/920721-2.c,
+       gcc.dg/noncompile/label-lineno-1.c, objc.dg/const-str-1.m,
+       objc.dg/const-str-2.m, objc.dg/method-1.m: Likewise.
+
 2002-02-06  Richard Henderson  <rth@redhat.com>
 
        * gcc.dg/asm-4.c: Add case with an unnamed operand in the middle.
index 3eb4f95f83d8374e1a23c44f7adf757c913257ea..b6a580bf23cada256440aca82a46a6e43e40ff1b 100644 (file)
@@ -5,7 +5,7 @@
 
 static int foo () {}
 
-int bar () {
+void bar () {
   int foo ();
   int foo ();
 }
index 5f2ff4ee88eacc7eb0daa37609480981c6e1080d..64ddce7f1ff963c826a9fbd3ec0e6a80f2933add 100644 (file)
@@ -1,4 +1,4 @@
-int
+void
 x(void)
 {
  register int *a asm("unknown_register");  /* { dg-error "invalid register" } */
index 2326b7efc6ba9c550ae90f25836fba30f0862746..9ec223c3af4646900979be2c5137588f1d45eb5b 100644 (file)
@@ -1,4 +1,4 @@
-int f(int n)
+void f(int n)
 {
 int s;
 for(s=0;s<n;s++)
index 8274117b3b0b654c1d0ddea4838cc080cb4b6d76..28a2aeafca45fe7df693b9de027e77af52d7a769 100644 (file)
@@ -1,7 +1,7 @@
 /* Ensure that diagnostics for labels appear on the correct lineno.
    by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/23/2000.  */
 
-int
+void
 foo(int i)
 {
  my_label:
index 6c6ae050cba0d2c43224dcd44d89d0d8799b8228..145c1b31e844256fb4b480f084a6000196b1dacc 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do compile } */
 /* { dg-options "-fgnu-runtime" } */
 
-int foo()
+void foo()
 {
   baz(@"hiya");  /* { dg-error "annot find interface declaration" } */
 }
@@ -10,7 +10,7 @@ int foo()
 @interface NXConstantString
 @end
 
-int bar()
+void bar()
 {
   baz(@"howdah");
 }
index 42dccd91888ae8d283882ee8c02cc48fbfe02316..39e703bae1aed05f4882321d263911cee440a8db 100644 (file)
@@ -4,7 +4,7 @@
 
 { dg-error "no class name specified as argument to -fconstant-string-class" "" { target *-*-* } 0 }
 
-int foo () {}
+void foo () {}
 
 /* Seem bogus, should investigate some day.  */
 /* { dg-error "parse error" "" { target *-*-* } 5 } */
index acc03c683590311c7f7f978ae705d7cf2b920662..8b761c65a28cf46803e351f24b74277ed651d2fe 100644 (file)
@@ -16,8 +16,8 @@
 @end
 
 @implementation class3
-- (int) meth1 {}
-- (int) meth1 {}  /* { dg-error "duplicate definition of instance method" } */
+- (int) meth1 { return 0; }
+- (int) meth1 { return 0; }  /* { dg-error "duplicate definition of instance method" } */
 /* { dg-error "redefinition of" "" { target *-*-* } 20 } */
 /* { dg-error "previously defined here" "" { target *-*-* } 19 } */
 @end