1 // RUN: %clang_cc1 -E %s -o %t.mm
2 // RUN: %clang_cc1 -fms-extensions -rewrite-objc -debug-info-kind=limited %t.mm -o %t-rw.cpp
3 // RUN: FileCheck -check-prefix CHECK-LINE --input-file=%t-rw.cpp %s
4 // RUN: %clang_cc1 -fms-extensions -rewrite-objc %t.mm -o %t-rwnog.cpp
5 // RUN: FileCheck -check-prefix CHECK-NOLINE --input-file=%t-rwnog.cpp %s
8 __attribute__((objc_root_class)) @interface MyObject {
13 @property(retain) id myLeader;
14 @property(assign) id isTickledPink;
17 @implementation MyObject
19 @synthesize myLeader = _myLeader;
20 @synthesize isTickledPink = _isTickledPink;
22 - (void) doSomething {
23 _myLeader = _isTickledPink;
31 p.isTickledPink = p.myLeader; // ok
32 p->_isTickledPink = p->_myLeader;
33 return p->_isTickledPink;
36 // CHECK-LINE: #line 22
37 // CHECK-LINE: #line 28
38 // CHECK-NOLINE-NOT: #line 22
39 // CHECK-NOLINE-NOT: #line 28