1 // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
7 a_ = a_; // expected-warning {{assigning field to itself}}
9 // Don't really care about this one either way.
10 this->a_ = a_; // expected-warning {{assigning field to itself}}
12 a_ += a_; // Shouldn't warn.
17 // Would be nice to have, but not important.
31 // Would be nice to have, but even less important.
32 t->s_->a_ = t->s_->a_;
35 void f3(T* t, T* t2) {
37 t2->s_->a_ = t->s_->a_;
41 // This is a common pattern to silence "parameter unused". Shouldn't warn.
55 a_ = a_; // expected-warning {{assigning instance variable to itself}}
59 // Don't care much about this warning.
60 i->a_ = i->a_; // expected-warning {{assigning instance variable to itself}}