diff options
author | Richard Henderson <rth@redhat.com> | 2002-02-07 01:08:25 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-02-07 01:08:25 -0800 |
commit | 30203c18ab5493ab1f5dcf057f1c9d9c3bbf0257 (patch) | |
tree | 8b46015fa87941fa2d55a8c738871051e9dc6aa6 | |
parent | 9b462c4274cd675e51fe0b856a903828d78d7cd7 (diff) | |
download | gcc-30203c18ab5493ab1f5dcf057f1c9d9c3bbf0257.zip gcc-30203c18ab5493ab1f5dcf057f1c9d9c3bbf0257.tar.gz gcc-30203c18ab5493ab1f5dcf057f1c9d9c3bbf0257.tar.bz2 |
dwarf2-1.c: Update for return warnings.
* 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
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/dwarf2-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/920507-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/920721-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/const-str-1.m | 4 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/const-str-2.m | 2 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/method-1.m | 4 |
8 files changed, 16 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a32e28e..af9c9ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2-1.c b/gcc/testsuite/gcc.dg/debug/dwarf2-1.c index 3eb4f95..b6a580b 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2-1.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2-1.c @@ -5,7 +5,7 @@ static int foo () {} -int bar () { +void bar () { int foo (); int foo (); } diff --git a/gcc/testsuite/gcc.dg/noncompile/920507-1.c b/gcc/testsuite/gcc.dg/noncompile/920507-1.c index 5f2ff4e..64ddce7 100644 --- a/gcc/testsuite/gcc.dg/noncompile/920507-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/920507-1.c @@ -1,4 +1,4 @@ -int +void x(void) { register int *a asm("unknown_register"); /* { dg-error "invalid register" } */ diff --git a/gcc/testsuite/gcc.dg/noncompile/920721-2.c b/gcc/testsuite/gcc.dg/noncompile/920721-2.c index 2326b7e..9ec223c 100644 --- a/gcc/testsuite/gcc.dg/noncompile/920721-2.c +++ b/gcc/testsuite/gcc.dg/noncompile/920721-2.c @@ -1,4 +1,4 @@ -int f(int n) +void f(int n) { int s; for(s=0;s<n;s++) diff --git a/gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c b/gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c index 8274117..28a2aea 100644 --- a/gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c @@ -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: diff --git a/gcc/testsuite/objc.dg/const-str-1.m b/gcc/testsuite/objc.dg/const-str-1.m index 6c6ae05..145c1b3 100644 --- a/gcc/testsuite/objc.dg/const-str-1.m +++ b/gcc/testsuite/objc.dg/const-str-1.m @@ -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"); } diff --git a/gcc/testsuite/objc.dg/const-str-2.m b/gcc/testsuite/objc.dg/const-str-2.m index 42dccd9..39e703b 100644 --- a/gcc/testsuite/objc.dg/const-str-2.m +++ b/gcc/testsuite/objc.dg/const-str-2.m @@ -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 } */ diff --git a/gcc/testsuite/objc.dg/method-1.m b/gcc/testsuite/objc.dg/method-1.m index acc03c6..8b761c6 100644 --- a/gcc/testsuite/objc.dg/method-1.m +++ b/gcc/testsuite/objc.dg/method-1.m @@ -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 |