1// RUN: %clang_cc1 -Wmissing-method-return-type -fsyntax-only -verify -Wno-objc-root-class %s
2// rdar://9615045
3
4@interface I
5-  initWithFoo:(id)foo; // expected-warning {{method has no return type specified; defaults to 'id'}}
6@end
7
8@implementation I
9- initWithFoo:(id)foo { return 0; } // expected-warning {{method has no return type specified; defaults to 'id'}}
10@end
11
12