================ @@ -97,3 +97,13 @@ void create_member_init() { RetainPtr<id> return_bridge_cast() { return bridge_cast<CFArrayRef, NSArray>(create_cf_array()); } + +void mutable_copy() { + RetainPtr<NSMutableDictionary> mutableArray = adoptNS(@{ + @"Content-Type": @"text/html", + }.mutableCopy); +} + +void string_copy(NSString *str) { + RetainPtr<NSString> copy = adoptNS(str.copy); +} ---------------- rniwa wrote:
There is a test case for `RetainPtr<NSMutableDictionary>` right above it. Or are you saying that we should add a test case which takes NSMutableDictionary* as a function argument? https://github.com/llvm/llvm-project/pull/132350 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits