diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-12 21:27:26 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-12 21:27:26 +0000 |
commit | 4a295308783a049c86c45d29cdaafe434cbee29c (patch) | |
tree | d5d84fb7b3f27bee05e25bfcbf81a63ab6eda9e2 | |
parent | 63d88728d862f8a69b3291e533d193d1d8513f5a (diff) |
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
-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 + |