2 // RUN: %clang_cc1 -fsyntax-only -verify -include %s -include %s %s
5 // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s
7 // expected-no-diagnostics
11 //===----------------------------------------------------------------------===//
19 @interface NSObject (Properties)
20 @property (readonly,nonatomic) int intProp;
23 //===----------------------------------------------------------------------===//
24 #elif !defined(HEADER2)
27 #error Header inclusion order messed up
30 //===----------------------------------------------------------------------===//
33 @interface MyClass : NSObject
37 @interface NSObject(ObjExt)
41 @interface NSObject ()
42 @property (readwrite,nonatomic) int intProp;
47 //===----------------------------------------------------------------------===//
49 //===----------------------------------------------------------------------===//
51 @implementation MyClass
58 void test(NSObject *o) {
61 // Make sure the property is treated as read-write.
65 //===----------------------------------------------------------------------===//