1 // Test that infinite loop in rdar://10418538 was fixed.
4 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class -include %s -include %s %s
7 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s -chain-include %s -chain-include %s
11 //===----------------------------------------------------------------------===//
17 @property (readonly) id prop1;
20 //===----------------------------------------------------------------------===//
21 #elif !defined(HEADER2)
24 #error Header inclusion order messed up
27 //===----------------------------------------------------------------------===//
40 @property (readwrite,assign) id prop1;
41 @property (copy) id prop2;
44 //===----------------------------------------------------------------------===//
46 //===----------------------------------------------------------------------===//
48 // expected-note@30 {{receiver is instance of class declared here}}
50 [i meth]; // expected-warning {{not found}}
54 @synthesize prop1, prop2;
57 //===----------------------------------------------------------------------===//