]> granicus.if.org Git - clang/commitdiff
objective-C++ test for my previous patch.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 12 Sep 2012 21:27:26 +0000 (21:27 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 12 Sep 2012 21:27:26 +0000 (21:27 +0000)
// rdar://12280826

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163741 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjCXX/arc-objc-lifetime.mm

index 634fe144282f4d43f4dbc72f6d8db02b1e2cccaf..1e4df741422aec7a51b0333d9b44ad96c20b1f41 100644 (file)
@@ -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
+