diff options
-rw-r--r-- | test/SemaObjCXX/arc-objc-lifetime.mm | 11 |
1 files changed, 11 insertions, 0 deletions
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<P>***)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 + |