summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/noeffect8.C
blob: 48edfdea6855874e80242dacac7254a87aebf23a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/26696, 28996
// { dg-do compile }
// { dg-options "-Waddress" }

struct A
{
  static void f() {}
}; 

int main() 
{
  A a; 
  a.f;    			// { dg-warning "not call" }
  A().f;  			// { dg-warning "not call" }
}