Contributed test case for PR7936

by Jean-Daniel Dupas.

llvm-svn: 111700
This commit is contained in:
Fariborz Jahanian
2010-08-21 00:17:33 +00:00
parent e4151b590e
commit 7a3f3a0402

View File

@@ -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;
}