1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result
2 // RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t
3 // RUN: diff %t %s.result
7 @interface A : NSObject {
13 @interface B : NSObject {
15 xpc_object_t _xpc_prop;
17 - (BOOL)containsSelf:(A*)a;
18 @property (strong) id prop;
19 @property (strong) xpc_object_t xpc_prop;
26 - (BOOL)containsSelf:(A*)a {
27 return a->object == self;
33 -(void) setProp:(id) newVal {
36 -(void) setProp2:(CFTypeRef) newVal {
37 _prop = (id)CFBridgingRelease(CFRetain(newVal));
43 -(void) setXpc_prop:(xpc_object_t) newVal {
50 int main (int argc, const char * argv[]) {
54 NSLog(@"%s", [b containsSelf:a] ? "YES" : "NO");
59 void test(A *prevVal, A *newVal) {
68 id a = [[A alloc] init];