2 // { dg-options "-Weffc++" }
3 // Contributed by Benjamin Kosnik <bkoz at redhat dot com>
4 // PR c++/16169 : Improve -Weffc++ rule 15
8 const A& operator=(int)
25 { return *this; } // { dg-warning "should return a reference" }
31 { return foo(); } // { dg-warning "should return a reference" }
38 { return *this; } // { dg-warning "should return a reference" }