* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49571
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
static int foo () {}
-int bar () {
+void bar () {
int foo ();
int foo ();
}
-int
+void
x(void)
{
register int *a asm("unknown_register"); /* { dg-error "invalid register" } */
-int f(int n)
+void f(int n)
{
int s;
for(s=0;s<n;s++)
/* 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:
/* { dg-do compile } */
/* { dg-options "-fgnu-runtime" } */
-int foo()
+void foo()
{
baz(@"hiya"); /* { dg-error "annot find interface declaration" } */
}
@interface NXConstantString
@end
-int bar()
+void bar()
{
baz(@"howdah");
}
{ 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 } */
@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