From: Fariborz Jahanian Date: Wed, 12 Sep 2012 21:27:26 +0000 (+0000) Subject: objective-C++ test for my previous patch. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a295308783a049c86c45d29cdaafe434cbee29c;p=clang objective-C++ test for my previous patch. // rdar://12280826 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163741 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjCXX/arc-objc-lifetime.mm b/test/SemaObjCXX/arc-objc-lifetime.mm index 634fe14428..1e4df74142 100644 --- a/test/SemaObjCXX/arc-objc-lifetime.mm +++ b/test/SemaObjCXX/arc-objc-lifetime.mm @@ -55,3 +55,14 @@ typedef void (^T) (); - (void) N : (__strong NSObject***) arg0 : (__strong NSObject

***)arg : (float**) arg1 : (double) arg2 {} - (void) BLOCK : (T&) arg0 : (T)arg : (__strong T*) arg1 {} // expected-warning {{method parameter of type '__autoreleasing T &' (aka 'void (^__autoreleasing &)()') with no explicit ownership}} @end + +// rdar://12280826 +@class NSMutableDictionary, NSError; +@interface Radar12280826 +- (void)createInferiorTransportAndSetEnvironment:(NSMutableDictionary*)environment error:(__autoreleasing NSError*&)error; +@end + +@implementation Radar12280826 +- (void)createInferiorTransportAndSetEnvironment:(NSMutableDictionary*)environment error:(__autoreleasing NSError*&)error {} +@end +