mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Contributed test case for PR7936
by Jean-Daniel Dupas. llvm-svn: 111700
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user