1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
4 - Meth; // expected-note 2 {{method 'Meth' declared here}}
5 - unavailableMeth __attribute__((availability(macosx,unavailable)));
6 - unavailableMeth2 __attribute__((unavailable));
9 @implementation I // expected-warning {{method definition for 'Meth' not found}}
12 @implementation I(CAT)
13 - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
18 -(void)mymeth __attribute__((availability(macos, introduced=100))); // expected-note{{here}}
20 @implementation MyClass // expected-warning{{'mymeth' not found}}
23 #pragma GCC diagnostic ignored "-Wincomplete-implementation"
25 - Meth; // expected-note{{method 'Meth' declared here}}
31 @implementation I2(CAT)
32 - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
41 __attribute__((visibility("default")))
42 @interface QN // expected-error {{Objective-C declarations may only appear in global scope}}
53 - (BOOL)isEqual:(id)object;
56 @interface NSObject <NSObject>
59 @protocol NSApplicationDelegate <NSObject>
60 - (void)ImpleThisMethod; // expected-note {{method 'ImpleThisMethod' declared here}}
63 @interface AppDelegate : NSObject <NSApplicationDelegate>
66 @implementation AppDelegate (MRRCategory)
68 - (BOOL)isEqual:(id)object
73 - (void)ImpleThisMethod {} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}