summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/arc-type-conversion.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-07-26 23:17:04 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-07-26 23:17:04 +0000
commite317d575bf76599f490711310cb4974387282558 (patch)
tree20dda808d4b985ff5265d75854fda76ba8a346bc /clang/test/SemaObjC/arc-type-conversion.m
parentea0db9217374abce98709f019af16747e5eaa9eb (diff)
objc-arc: When objects with known CF semantics are assigned to
retainable types in arc, only suggest CFBridgingRelease/ CFBridgingRetain and not the confusing __bridge casts. // rdar://11923822
Diffstat (limited to 'clang/test/SemaObjC/arc-type-conversion.m')
-rw-r--r--clang/test/SemaObjC/arc-type-conversion.m2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/arc-type-conversion.m b/clang/test/SemaObjC/arc-type-conversion.m
index 5cf2cf4b745..6e0125e374b 100644
--- a/clang/test/SemaObjC/arc-type-conversion.m
+++ b/clang/test/SemaObjC/arc-type-conversion.m
@@ -17,13 +17,11 @@ void * cvt(id arg)
(void)(void**)arg; // expected-error {{cast of an Objective-C pointer to 'void **' is disallowed with ARC}}
cvt((void*)arg); // expected-error {{cast of Objective-C pointer type 'id' to C pointer type 'void *' requires a bridged cast}} \
// expected-error {{implicit conversion of C pointer type 'void *' to Objective-C pointer type 'id' requires a bridged cast}} \
- // expected-note 2 {{use __bridge to convert directly (no change in ownership)}} \
// expected-note {{use CFBridgingRetain call to make an ARC object available as a +1 'void *'}} \
// expected-note {{use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC}}
cvt(0);
(void)(__strong id**)(0);
return arg; // expected-error {{implicit conversion of Objective-C pointer type 'id' to C pointer type 'void *' requires a bridged cast}} \
- // expected-note {{use __bridge to convert directly (no change in ownership)}} \
// expected-note {{use CFBridgingRetain call to make an ARC object available as a +1 'void *'}}
}