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}}
17 -(void)mymeth __attribute__((availability(macos, introduced=100))); // expected-note{{here}}
19 @implementation MyClass // expected-warning{{'mymeth' not found}}
22 #pragma GCC diagnostic ignored "-Wincomplete-implementation"
24 - Meth; // expected-note{{method 'Meth' declared here}}
30 @implementation I2(CAT)
31 - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}
39 __attribute__((visibility("default")))
40 @interface QN // expected-error {{Objective-C declarations may only appear in global scope}}
50 - (BOOL)isEqual:(id)object;
53 @interface NSObject <NSObject>
56 @protocol NSApplicationDelegate <NSObject>
57 - (void)ImpleThisMethod; // expected-note {{method 'ImpleThisMethod' declared here}}
60 @interface AppDelegate : NSObject <NSApplicationDelegate>
63 @implementation AppDelegate (MRRCategory)
65 - (BOOL)isEqual:(id)object
70 - (void)ImpleThisMethod {} // expected-warning {{category is implementing a method which will also be implemented by its primary class}}