1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 @interface MySuperClass
16 @implementation MySuperClass
21 access = s->protected;
26 @interface MyClass : MySuperClass
29 @implementation MyClass
33 access = s->private; // expected-error {{instance variable 'private' is private}}
34 access = s->protected;
36 access = m->private; // expected-error {{instance variable 'private' is private}}
37 access = m->protected;
42 @interface Deeper : MyClass
45 @implementation Deeper
49 access = s->private; // expected-error {{instance variable 'private' is private}}
50 access = s->protected;
52 access = m->private; // expected-error {{instance variable 'private' is private}}
53 access = m->protected;
60 @implementation Unrelated
64 access = s->private; // expected-error {{instance variable 'private' is private}}
65 access = s->protected; // expected-error {{instance variable 'protected' is protected}}
67 access = m->private; // expected-error {{instance variable 'private' is private}}
68 access = m->protected; // expected-error {{instance variable 'protected' is protected}}
76 access = s->private; // expected-error {{instance variable 'private' is private}}
77 access = s->protected; // expected-error {{instance variable 'protected' is protected}}
81 typedef signed char BOOL;
82 typedef unsigned int NSUInteger;
83 typedef struct _NSZone NSZone;
84 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
85 @protocol NSObject - (BOOL)isEqual:(id)object;
87 @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
89 @interface NSObject <NSObject> {}
91 extern id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
92 @interface NSResponder : NSObject <NSCoding> {}
94 @protocol NSAnimatablePropertyContainer
97 extern NSString *NSAnimationTriggerOrderIn ;
98 @interface NSView : NSResponder <NSAnimatablePropertyContainer> {
104 @class NSFontDescriptor, NSAffineTransform, NSGraphicsContext;
105 @interface NSScrollView : NSView {}
108 @class CasperMixerView;
109 @interface CasperDiffScrollView : NSScrollView {
111 CasperMixerView *_comparatorView;
116 @implementation CasperDiffScrollView
117 + (void)initialize {}
118 static void _CasperDiffScrollViewInstallMixerView(CasperDiffScrollView *scrollView) {
119 if (scrollView->someField != ((void *)0)) {