OSDN Git Service

2009-02-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / noeffect8.C
1 // PR c++/26696, 28996
2 // { dg-do compile }
3 // { dg-options "-Waddress" }
4
5 struct A
6 {
7   static void f() {}
8 }; 
9
10 int main() 
11 {
12   A a; 
13   a.f;                          // { dg-warning "not call" }
14   A().f;                        // { dg-warning "not call" }
15 }