PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Waddress-2.C
blob58594f9629ccbe9aa635e3e4e6b542b0caf6290e
1 // PR c++/64877
2 // { dg-options "-Waddress" }
4 template<class Derived>
5 struct S
7   void m() {
8   }
10   S()
11   {
12     if (&S<Derived>::Unwrap != &Derived::Unwrap)
13       m();
14   }
16   void Unwrap() {
17   }
20 struct T : public S<T>
24 T t;