[cfe-commits] r111700 - /cfe/trunk/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
Fariborz Jahanian
fjahanian at apple.com
Fri Aug 20 17:17:33 PDT 2010
Author: fjahanian
Date: Fri Aug 20 19:17:33 2010
New Revision: 111700
URL: http://llvm.org/viewvc/llvm-project?rev=111700&view=rev
Log:
Contributed test case for PR7936
by Jean-Daniel Dupas.
Modified:
cfe/trunk/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
Modified: cfe/trunk/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/conversion-to-objc-pointer-2.mm?rev=111700&r1=111699&r2=111700&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/conversion-to-objc-pointer-2.mm (original)
+++ cfe/trunk/test/SemaObjCXX/conversion-to-objc-pointer-2.mm Fri Aug 20 19:17:33 2010
@@ -82,6 +82,7 @@
TNSAutoRef<NSObject*> object2([[NSObject alloc] init]);
TNSAutoRef<TBar*> bar([[TBar alloc] init]);
[bar setBlah: object1]; // <== Does not compile. It should.
- [bar setBlah: object2]; // <== Does not compile. It should.
+ if (object1 == object2)
+ [bar setBlah: object2]; // <== Does not compile. It should.
return 0;
}
More information about the cfe-commits
mailing list