| // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result |
| // RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t |
| // RUN: diff %t %s.result |
| @interface A : NSObject { |
| @interface B : NSObject { |
| - (BOOL)containsSelf:(A*)a; |
| @property (strong) id prop; |
| @property (strong) xpc_object_t xpc_prop; |
| - (BOOL)containsSelf:(A*)a { |
| return a->object == self; |
| -(void) setProp:(id) newVal { |
| -(void) setProp2:(CFTypeRef) newVal { |
| _prop = (id)CFBridgingRelease(CFRetain(newVal)); |
| -(void) setXpc_prop:(xpc_object_t) newVal { |
| int main (int argc, const char * argv[]) { |
| NSLog(@"%s", [b containsSelf:a] ? "YES" : "NO"); |
| void test(A *prevVal, A *newVal) { |