1 // RUN: %clang_cc1 %s -verify -fsyntax-only 2 3 class ClassA {}; 4 5 class ClassB { 6 public: 7 ClassB(ClassA* parent=0); 8 ~ClassB(); 9 }; 10 11 @interface NSObject 12 @end 13 14 @interface InterfaceA : NSObject 15 @property(nonatomic, assign) ClassA *m_prop1; // expected-note {{here}} 16 @property(nonatomic, assign) ClassB *m_prop2; 17 @end 18 19 @implementation InterfaceA 20 - (id)test { 21 self.m_prop2 = new ClassB(m_prop1); // expected-error {{use of undeclared identifier 'm_prop1'; did you mean '_m_prop1'?}} 22 } 23 @end 24