1 // RUN: %clang_cc1 -Wmethod-signatures -fsyntax-only -verify -Wno-objc-root-class %s
8 - (int) meth { return [self meth]; }
13 +- (void)myMethod; // expected-error {{expected selector for Objective-C method}}
14 - (vid)myMethod2; // expected-error {{expected a type}}
17 @implementation MyClass
19 - (vid)myMethod2 { } // expected-error {{expected a type}}
27 //@protocol GrowlPluginHandler <NSObject> @end
31 - (int)myMethod1: (id<proto>)
32 arg; // expected-note {{previous definition is here}}
35 @implementation SomeClass2
36 - (int)myMethod1: (id<NSObject>)
37 arg { // expected-warning {{conflicting parameter types in implementation of 'myMethod1:': 'id<proto>' vs 'id<NSObject>'}}