| // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s |
| a_ = a_; // expected-warning {{assigning field to itself}} |
| // Don't really care about this one either way. |
| this->a_ = a_; // expected-warning {{assigning field to itself}} |
| a_ += a_; // Shouldn't warn. |
| // Would be nice to have, but not important. |
| // Would be nice to have, but even less important. |
| // This is a common pattern to silence "parameter unused". Shouldn't warn. |
| a_ = a_; // expected-warning {{assigning instance variable to itself}} |
| // Don't care much about this warning. |
| i->a_ = i->a_; // expected-warning {{assigning instance variable to itself}} |