PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / noeffect8.C
blob48edfdea6855874e80242dacac7254a87aebf23a
1 // PR c++/26696, 28996
2 // { dg-do compile }
3 // { dg-options "-Waddress" }
5 struct A
7   static void f() {}
8 }; 
10 int main() 
12   A a; 
13   a.f;                          // { dg-warning "not call" }
14   A().f;                        // { dg-warning "not call" }