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
7 __attribute__((objc_root_class)) @interface MyObject {
12 @property(retain) id myLeader;
13 @property(assign) id isTickledPink;
16 @implementation MyObject
18 @synthesize myLeader = _myLeader;
19 @synthesize isTickledPink = _isTickledPink;
21 - (void) doSomething {
22 _myLeader = _isTickledPink;
30 p.isTickledPink = p.myLeader; // ok
31 p->_isTickledPink = p->_myLeader;
32 return p->_isTickledPink;
35 // CHECK-LINE: #line 21
36 // CHECK-LINE: #line 27
37 // CHECK-NOLINE-NOT: #line 21
38 // CHECK-NOLINE-NOT: #line 27