Commit 30203c18 by Richard Henderson Committed by Richard Henderson

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
parent 9b462c42
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> 2002-02-06 Richard Henderson <rth@redhat.com>
* gcc.dg/asm-4.c: Add case with an unnamed operand in the middle. * gcc.dg/asm-4.c: Add case with an unnamed operand in the middle.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
static int foo () {} static int foo () {}
int bar () { void bar () {
int foo (); int foo ();
int foo (); int foo ();
} }
int void
x(void) x(void)
{ {
register int *a asm("unknown_register"); /* { dg-error "invalid register" } */ register int *a asm("unknown_register"); /* { dg-error "invalid register" } */
......
int f(int n) void f(int n)
{ {
int s; int s;
for(s=0;s<n;s++) for(s=0;s<n;s++)
......
/* Ensure that diagnostics for labels appear on the correct lineno. /* Ensure that diagnostics for labels appear on the correct lineno.
by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/23/2000. */ by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/23/2000. */
int void
foo(int i) foo(int i)
{ {
my_label: my_label:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-fgnu-runtime" } */ /* { dg-options "-fgnu-runtime" } */
int foo() void foo()
{ {
baz(@"hiya"); /* { dg-error "annot find interface declaration" } */ baz(@"hiya"); /* { dg-error "annot find interface declaration" } */
} }
...@@ -10,7 +10,7 @@ int foo() ...@@ -10,7 +10,7 @@ int foo()
@interface NXConstantString @interface NXConstantString
@end @end
int bar() void bar()
{ {
baz(@"howdah"); baz(@"howdah");
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{ dg-error "no class name specified as argument to -fconstant-string-class" "" { target *-*-* } 0 } { dg-error "no class name specified as argument to -fconstant-string-class" "" { target *-*-* } 0 }
int foo () {} void foo () {}
/* Seem bogus, should investigate some day. */ /* Seem bogus, should investigate some day. */
/* { dg-error "parse error" "" { target *-*-* } 5 } */ /* { dg-error "parse error" "" { target *-*-* } 5 } */
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
@end @end
@implementation class3 @implementation class3
- (int) meth1 {} - (int) meth1 { return 0; }
- (int) meth1 {} /* { dg-error "duplicate definition of instance method" } */ - (int) meth1 { return 0; } /* { dg-error "duplicate definition of instance method" } */
/* { dg-error "redefinition of" "" { target *-*-* } 20 } */ /* { dg-error "redefinition of" "" { target *-*-* } 20 } */
/* { dg-error "previously defined here" "" { target *-*-* } 19 } */ /* { dg-error "previously defined here" "" { target *-*-* } 19 } */
@end @end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment