1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 @interface MySuperClass
18 @implementation MySuperClass
24 access = s->protected;
29 @interface MyClass : MySuperClass
32 @implementation MyClass
37 access = s->private; // expected-error {{instance variable 'private' is private}}
38 access = s->protected;
41 access = m->private; // expected-error {{instance variable 'private' is private}}
42 access = m->protected;
47 @interface Deeper : MyClass
50 @implementation Deeper
55 access = s->private; // expected-error {{instance variable 'private' is private}}
56 access = s->protected;
59 access = m->private; // expected-error {{instance variable 'private' is private}}
60 access = m->protected;
67 @implementation Unrelated
71 access = s->unmarked; // expected-error {{instance variable 'unmarked' is protected}}
72 access = s->private; // expected-error {{instance variable 'private' is private}}
73 access = s->protected; // expected-error {{instance variable 'protected' is protected}}
75 access = m->unmarked; // expected-error {{instance variable 'unmarked' is protected}}
76 access = m->private; // expected-error {{instance variable 'private' is private}}
77 access = m->protected; // expected-error {{instance variable 'protected' is protected}}
85 access = s->unmarked; // expected-error {{instance variable 'unmarked' is protected}}
86 access = s->private; // expected-error {{instance variable 'private' is private}}
87 access = s->protected; // expected-error {{instance variable 'protected' is protected}}
91 typedef signed char BOOL;
92 typedef unsigned int NSUInteger;
93 typedef struct _NSZone NSZone;
94 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
95 @protocol NSObject - (BOOL)isEqual:(id)object;
97 @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
99 @interface NSObject <NSObject> {}
101 extern id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
102 @interface NSResponder : NSObject <NSCoding> {}
104 @protocol NSAnimatablePropertyContainer
107 extern NSString *NSAnimationTriggerOrderIn ;
108 @interface NSView : NSResponder <NSAnimatablePropertyContainer> {
114 @class NSFontDescriptor, NSAffineTransform, NSGraphicsContext;
115 @interface NSScrollView : NSView {}
118 @class CasperMixerView;
119 @interface CasperDiffScrollView : NSScrollView {
121 CasperMixerView *_comparatorView;
126 @implementation CasperDiffScrollView
127 + (void)initialize {}
128 static void _CasperDiffScrollViewInstallMixerView(CasperDiffScrollView *scrollView) {
129 if (scrollView->someField != ((void *)0)) {