summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/conversion-to-objc-pointer-2.mm')
-rw-r--r--test/SemaObjCXX/conversion-to-objc-pointer-2.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaObjCXX/conversion-to-objc-pointer-2.mm b/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
index 5277d10..b03d4d8 100644
--- a/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
+++ b/test/SemaObjCXX/conversion-to-objc-pointer-2.mm
@@ -82,6 +82,7 @@ int main (int argc, const char * argv[]) {
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;
}
OpenPOWER on IntegriCloud