tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / effc4.C
blob2ce79280104679baa90745b5cf57ff04c16385c2
1 // PR c++/84364
2 // { dg-do compile }
3 // { dg-options "-Weffc++" }
5 template <typename T>
6 struct A {
7   A &operator=(A<T>& f) {
8     return *this;       // { dg-bogus "should return a reference to" }
9   }