Author: fjahanian
Date: Wed Sep 12 16:27:26 2012
New Revision: 163741
URL: http://llvm.org/viewvc/llvm-project?rev=163741&view=rev
Log:
objective-C++ test for my previous patch.
// rdar://12280826
Modified:
cfe/trunk/test/SemaObjCXX/arc-objc-lifetime.mm
Modified: cfe/trunk/test/SemaObjCXX/arc-objc-lifetime.mm
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/arc-objc-lifetime.mm?rev=163741&r1=163740&r2=163741&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/arc-objc-lifetime.mm (original)
+++ cfe/trunk/test/SemaObjCXX/arc-objc-lifetime.mm Wed Sep 12 16:27:26 2012
@@ -55,3 +55,14 @@
- (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
+
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits