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
This commit is contained in:
Richard Henderson 2002-02-07 01:08:25 -08:00 committed by Richard Henderson
parent 9b462c4274
commit 30203c18ab
8 changed files with 16 additions and 9 deletions

View 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.

View File

@ -5,7 +5,7 @@
static int foo () {}
int bar () {
void bar () {
int foo ();
int foo ();
}

View File

@ -1,4 +1,4 @@
int
void
x(void)
{
register int *a asm("unknown_register"); /* { dg-error "invalid register" } */

View File

@ -1,4 +1,4 @@
int f(int n)
void f(int n)
{
int s;
for(s=0;s<n;s++)

View 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:

View 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");
}

View 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 } */

View 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