forked from OSchip/llvm-project
24 lines
486 B
Plaintext
24 lines
486 B
Plaintext
// RUN: %clang_cc1 %s -verify -fsyntax-only
|
|
|
|
class ClassA {};
|
|
|
|
class ClassB {
|
|
public:
|
|
ClassB(ClassA* parent=0);
|
|
~ClassB();
|
|
};
|
|
|
|
@interface NSObject
|
|
@end
|
|
|
|
@interface InterfaceA : NSObject
|
|
@property(nonatomic, assign) ClassA *m_prop1; // expected-note {{here}}
|
|
@property(nonatomic, assign) ClassB *m_prop2;
|
|
@end
|
|
|
|
@implementation InterfaceA
|
|
- (id)test {
|
|
self.m_prop2 = new ClassB(m_prop1); // expected-error {{use of undeclared identifier 'm_prop1'; did you mean '_m_prop1'?}}
|
|
}
|
|
@end
|