1 // RUN: %clang_cc1 -x objective-c -fsyntax-only -verify -Wno-objc-root-class %s
2 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
6 @interface CNAppDelegate
8 @property (strong, nonatomic) UIWindow *window;
13 @interface CNAppDelegate ()
14 @property (nonatomic,retain) id foo;
17 @implementation CNAppDelegate
19 @synthesize window = _window;
23 foo = 0; // expected-error {{instance variable 'foo' accessed in class method}}