зеркало из https://github.com/microsoft/clang-1.git
Contributed test case for PR7936
by Jean-Daniel Dupas. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2e2acec770
Коммит
648d200efa
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче